From: Yehuda Sadeh Date: Fri, 24 Oct 2014 00:39:42 +0000 (-0700) Subject: rgw: send http status reason explicitly in fastcgi X-Git-Tag: v0.87.1~33 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1ccd73a16e1829b5519ec5b83b2554af173ad052;p=ceph.git rgw: send http status reason explicitly in fastcgi 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 (cherry picked from commit a9dd4af401328e8f9071dee52470a0685ceb296b) --- diff --git a/src/rgw/rgw_fcgi.cc b/src/rgw/rgw_fcgi.cc index 1fb640f0e56a..1a320e1dc653 100644 --- a/src/rgw/rgw_fcgi.cc +++ b/src/rgw/rgw_fcgi.cc @@ -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()