MINOR: http: turn default error files to HTTP/1.1
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Jun 2019 14:08:25 +0000 (16:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Jun 2019 14:37:13 +0000 (16:37 +0200)
commitb5ba2b0177c0964a39500bc6bbf8f467a8401b14
treed1fccbe4cdaacf376202fedaf87155b3e8cedb3a
parent5abdc760c99a0011607f2cc97e199ef6ce0e8486
MINOR: http: turn default error files to HTTP/1.1

For quite a long time we've been saying that the default error files
should produce HTTP/1.1 responses and since it's of low importance, it
always gets forgotten.

So here it finally comes. Each status code now properly contains a
content-length header so that the output is clean and doesn't force
upstream proxies to switch to chunked encoding or to close the connection
immediately after the response, which is particularly annoying for 401
or 407 for example. It's worth noting that the 3xx codes had already
been turned to HTTP/1.1.

This patch will obviously not change anything for user-provided error files.
src/http.c
src/proto_htx.c