From 1ccd73a16e1829b5519ec5b83b2554af173ad052 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 23 Oct 2014 17:39:42 -0700 Subject: [PATCH] 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) --- src/rgw/rgw_fcgi.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.47.3