From: Yehuda Sadeh Date: Wed, 22 Jul 2015 17:01:00 +0000 (-0700) Subject: rgw: set http status in civetweb X-Git-Tag: v9.1.0~457^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F5445%2Fhead;p=ceph.git rgw: set http status in civetweb Need to set the http status in civetweb so that we report it correctly. Fixes: #12432 Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_civetweb.cc b/src/rgw/rgw_civetweb.cc index eea3b1459bd7..81e504c5f9b1 100644 --- a/src/rgw/rgw_civetweb.cc +++ b/src/rgw/rgw_civetweb.cc @@ -143,6 +143,9 @@ int RGWMongoose::send_status(const char *status, const char *status_name) bl.append(header_data); header_data = bl; + int status_num = atoi(status); + mg_set_http_status(conn, status_num); + return 0; }