Fix rest_bench to support https

Fixes: #3968
There's typo in the code which has compared 'http' twice

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
This commit is contained in:
Yuan Zhou 2015-07-09 15:45:52 +08:00
parent 5715e472e6
commit 624fa43a9a

View 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;