]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: send http status reason explicitly in fastcgi
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 24 Oct 2014 00:39:42 +0000 (17:39 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 13 Jan 2015 01:01:31 +0000 (17:01 -0800)
There are issues in certain versions of apache 2.4, where the reason is
not sent back. Instead, just provide the reason explicitly.

Backport: firefly, giant

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit a9dd4af401328e8f9071dee52470a0685ceb296b)

src/rgw/rgw_fcgi.cc

index 4b24dabe5568a790b1dc1a15829bf6d458e665ee..b4adeb66e410e035ec08ae17d8f737ba6901cd30 100644 (file)
@@ -32,7 +32,7 @@ void RGWFCGX::init_env(CephContext *cct)
 
 int RGWFCGX::send_status(const char *status, const char *status_name)
 {
-  return print("Status: %s\n", status);
+  return print("Status: %s %s\n", status, status_name);
 }
 
 int RGWFCGX::send_100_continue()