Signed-off-by: Bo Cai <cai.bo@h3c.com>
return get_obj_op(false);
}
-int RGWHandler_ObjStore_S3Website::get_errordoc(const string errordoc_key, string *error_content) {
+int RGWHandler_ObjStore_S3Website::get_errordoc(const string& errordoc_key, string *error_content) {
ldout(s->cct, 20) << "TODO Serve Custom error page here if bucket has <Error>" << dendl;
*error_content = errordoc_key;
// 1. Check if errordoc exists
RGWOp *op_copy() { return NULL; }
RGWOp *op_options() { return NULL; }
- int get_errordoc(const string errordoc_key, string *error_content);
+ int get_errordoc(const string& errordoc_key, string *error_content);
public:
RGWHandler_ObjStore_S3Website() : RGWHandler_ObjStore_S3() {}
virtual ~RGWHandler_ObjStore_S3Website() {}