]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix rest_bench to support https 5176/head
authorYuan Zhou <yuan.zhou@intel.com>
Thu, 9 Jul 2015 07:45:52 +0000 (15:45 +0800)
committerYuan Zhou <yuan.zhou@intel.com>
Thu, 9 Jul 2015 07:46:18 +0000 (15:46 +0800)
Fixes: #3968
There's typo in the code which has compared 'http' twice

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
src/tools/rest_bench.cc

index 9ba868ea9215c68eac48c20041201dca2bc03963..159f91cbd5672e8e0539b7164a457163a2b99160 100644 (file)
@@ -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;