From: Yuan Zhou Date: Thu, 9 Jul 2015 07:45:52 +0000 (+0800) Subject: Fix rest_bench to support https X-Git-Tag: v9.0.3~70^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=624fa43a9a7f2079d313f7a1bbaa9a9e8bedda0a;p=ceph.git Fix rest_bench to support https Fixes: #3968 There's typo in the code which has compared 'http' twice Signed-off-by: Yuan Zhou --- diff --git a/src/tools/rest_bench.cc b/src/tools/rest_bench.cc index 9ba868ea9215c..159f91cbd5672 100644 --- a/src/tools/rest_bench.cc +++ b/src/tools/rest_bench.cc @@ -705,7 +705,7 @@ int main(int argc, const char **argv) } 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;