mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-17 17:04:35 +00:00
MINOR: stats: always emit HTTP/1.1 in responses
We used to emit either 1.0 or 1.1 depending on whether we were sending chunks or not. This condition is useless, better always send 1.1. Also that way at least clients and intermediary proxies know we speak 1.1. The "Connection: close" header is still set anyway.
This commit is contained in:
parent
f118d9f507
commit
8b8995f0f4
@ -4357,11 +4357,10 @@ static int stats_send_http_headers(struct stream_interface *si)
|
||||
struct appctx *appctx = objt_appctx(si->end);
|
||||
|
||||
chunk_printf(&trash,
|
||||
"HTTP/1.%c 200 OK\r\n"
|
||||
"HTTP/1.1 200 OK\r\n"
|
||||
"Cache-Control: no-cache\r\n"
|
||||
"Connection: close\r\n"
|
||||
"Content-Type: %s\r\n",
|
||||
(appctx->ctx.stats.flags & STAT_CHUNKED) ? '1' : '0',
|
||||
(appctx->ctx.stats.flags & STAT_FMT_HTML) ? "text/html" : "text/plain");
|
||||
|
||||
if (uri->refresh > 0 && !(appctx->ctx.stats.flags & STAT_NO_REFRESH))
|
||||
|
Loading…
Reference in New Issue
Block a user