]> git-server-git.apps.pok.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>
Fri, 30 Jan 2015 21:36:49 +0000 (13:36 -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 1fb640f0e56a2e86d8da0c16e7bfe3a1ca56ead8..1a320e1dc6533ff77b76b67b8597ad2751038b1b 100644 (file)
@@ -33,7 +33,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()