mirror of
https://github.com/ceph/ceph
synced 2024-12-19 09:57:05 +00:00
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:
parent
5715e472e6
commit
624fa43a9a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user