]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: custom status reason.
authorRobin H. Johnson <robbat2@gentoo.org>
Sun, 1 Jan 2017 21:10:52 +0000 (13:10 -0800)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Jan 2017 10:57:44 +0000 (11:57 +0100)
commit52f5db2a44d153797ffd547887a3568e3218c4fc
tree1ab7df102f8f2289453e4b5f3e3ab4e84db645ee
parent2afff9c2d6ce6d8f55b1664e76b1d30085540c7b
MINOR: http: custom status reason.

The older 'rsprep' directive allows modification of the status reason.

Extend 'http-response set-status' to take an optional string of the new
status reason.

  http-response set-status 418 reason "I'm a coffeepot"

Matching updates in Lua code:
- AppletHTTP.set_status
- HTTP.res_set_status

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
doc/configuration.txt
doc/lua-api/index.rst
include/proto/proto_http.h
include/types/action.h
include/types/applet.h
src/hlua.c
src/proto_http.c