From 43e8ea43d596b492af0fe4d90042649429a8c883 Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Mon, 7 May 2018 14:58:04 +0200 Subject: [PATCH] rgw: rgw_cr_rest: allow headers to be specified in Put CRs Adding another constructor overload for cases when we need to override the default headers Signed-off-by: Abhishek Lekshmanan --- src/rgw/rgw_cr_rest.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/rgw/rgw_cr_rest.h b/src/rgw/rgw_cr_rest.h index f53d972f3fe..821e76d253c 100644 --- a/src/rgw/rgw_cr_rest.h +++ b/src/rgw/rgw_cr_rest.h @@ -267,6 +267,17 @@ public: : RGWSendRESTResourceCR(_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 *_attrs, + S& _input, T *_result) + : RGWSendRESTResourceCR(_cct, _conn, _http_manager, + "PUT", _path, + _params, _attrs, _input, _result) {} + }; class RGWDeleteRESTResourceCR : public RGWSimpleCoroutine { -- 2.39.5