From: Loic Dachary Date: Fri, 31 Jul 2015 18:54:26 +0000 (+0200) Subject: Merge pull request #5228 from theanalyst/wip-11872-hammer X-Git-Tag: v0.94.3~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7193c16b65fdc1694b968899d23eae0638d89f11;p=ceph.git Merge pull request #5228 from theanalyst/wip-11872-hammer RGW does not send Date HTTP header when civetweb frontend is used Reviewed-by: Yehuda Sadeh --- 7193c16b65fdc1694b968899d23eae0638d89f11 diff --cc src/rgw/rgw_civetweb.cc index 1fb28b951c5,1495e92d474..eea3b1459bd --- a/src/rgw/rgw_civetweb.cc +++ b/src/rgw/rgw_civetweb.cc @@@ -161,10 -169,10 +175,12 @@@ int RGWMongoose::complete_header( return 0; } + dump_date_header(header_data); + if (explicit_keepalive) header_data.append("Connection: Keep-Alive\r\n"); + else if (explicit_conn_close) + header_data.append("Connection: close\r\n"); header_data.append("\r\n");