Fixes: #3968
There's typo in the code which has compared 'http' twice
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
} else if (ceph_argparse_witharg(args, i, &proto_str, "--protocol", (char*)NULL)) {
if (strcasecmp(proto_str.c_str(), "http") == 0) {
protocol = S3ProtocolHTTP;
- } else if (strcasecmp(proto_str.c_str(), "http") == 0) {
+ } else if (strcasecmp(proto_str.c_str(), "https") == 0) {
protocol = S3ProtocolHTTPS;
} else {
cerr << "bad protocol" << std::endl;