]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set http status in civetweb 5498/head
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 22 Jul 2015 17:01:00 +0000 (10:01 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 6 Aug 2015 16:11:41 +0000 (09:11 -0700)
Need to set the http status in civetweb so that we report it correctly.
Fixes: #12432
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit b8e28ab9f914bf48c9ba4f0def9a0deb9dbb93bc)

src/rgw/rgw_civetweb.cc

index eea3b1459bd7f245c789d8559d42c4cc5b3a1a64..81e504c5f9b1dd60c5554994a32a3b810b0e9506 100644 (file)
@@ -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;
 }