]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: use camelcase format in request headers 19210/head
authorChang Liu <liuchang0812@gmail.com>
Tue, 28 Nov 2017 12:36:40 +0000 (20:36 +0800)
committerChang Liu <liuchang0812@gmail.com>
Tue, 28 Nov 2017 12:36:40 +0000 (20:36 +0800)
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 <liuchang0812@gmail.com>
Signed-off-by: lvshanchun <lvshanchun@gmail.com>
src/rgw/rgw_http_client.cc

index 45c3405ecd5f97a0a2dc98b67116e63c9a0adb44..f81ce94b3e039ede6354face96304bc84b14f055 100644 (file)
@@ -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);