From b8e28ab9f914bf48c9ba4f0def9a0deb9dbb93bc Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 22 Jul 2015 10:01:00 -0700 Subject: [PATCH] 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 --- src/rgw/rgw_civetweb.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rgw/rgw_civetweb.cc b/src/rgw/rgw_civetweb.cc index eea3b1459bd7f..81e504c5f9b1d 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; } -- 2.39.5