From: Chang Liu Date: Tue, 28 Nov 2017 12:36:40 +0000 (+0800) Subject: rgw: use camelcase format in request headers X-Git-Tag: v13.0.2~809^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=923614240fbf93eb1217afdf2e28248bf939f34b;p=ceph.git rgw: use camelcase format in request headers eg: use Date instead of DATE. in RGW AWS sync module, we will use this class to send HTTP request to AWS S3. AWS S3 requires Authorization and Date. Signed-off-by: Chang Liu Signed-off-by: lvshanchun --- diff --git a/src/rgw/rgw_http_client.cc b/src/rgw/rgw_http_client.cc index 45c3405ecd5f..f81ce94b3e03 100644 --- a/src/rgw/rgw_http_client.cc +++ b/src/rgw/rgw_http_client.cc @@ -220,6 +220,8 @@ static curl_slist *headers_to_slist(param_vec_t& headers) val[i] = '-'; } } + + val = camelcase_dash_http_attr(val); val.append(": "); val.append(p.second);