]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: rgw_cr_rest: allow headers to be specified in Put CRs
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 7 May 2018 12:58:04 +0000 (14:58 +0200)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 25 Jan 2019 23:45:56 +0000 (15:45 -0800)
Adding another constructor overload for cases when we need to override the
default headers

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_cr_rest.h

index f53d972f3fe40bd9fd4f1e03c6366e722b5c0ba6..821e76d253c76037434144ef5ac947d4e9371a0c 100644 (file)
@@ -267,6 +267,17 @@ public:
     : RGWSendRESTResourceCR<S, T>(_cct, _conn, _http_manager,
                                   "PUT", _path,
                                   _params, nullptr, _input, _result) {}
+
+  RGWPutRESTResourceCR(CephContext *_cct, RGWRESTConn *_conn,
+                       RGWHTTPManager *_http_manager,
+                       const string& _path,
+                       rgw_http_param_pair *_params,
+                       map <string, string> *_attrs,
+                       S& _input, T *_result)
+    : RGWSendRESTResourceCR<S, T>(_cct, _conn, _http_manager,
+                                  "PUT", _path,
+                                  _params, _attrs, _input, _result) {}
+
 };
 
 class RGWDeleteRESTResourceCR : public RGWSimpleCoroutine {