]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: send http status reason explicitly in fastcgi 2789/head
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 24 Oct 2014 00:39:42 +0000 (17:39 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 24 Oct 2014 00:41:43 +0000 (17:41 -0700)
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>
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()