From 923614240fbf93eb1217afdf2e28248bf939f34b Mon Sep 17 00:00:00 2001 From: Chang Liu Date: Tue, 28 Nov 2017 20:36:40 +0800 Subject: [PATCH] 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 --- src/rgw/rgw_http_client.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rgw/rgw_http_client.cc b/src/rgw/rgw_http_client.cc index 45c3405ecd5..f81ce94b3e0 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); -- 2.39.5