MEDIUM: http: make option http_proxy automatically rewrite the URL
authorWilly Tarreau <w@1wt.eu>
Mon, 16 Dec 2013 13:30:55 +0000 (14:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 16 Dec 2013 13:30:55 +0000 (14:30 +0100)
commite8df1e128dac0b76a7d2481e242d3388bd5fcd01
tree2152d4b7ce21f6d2f3da4d69028c43f2ece252b4
parent6762a3061ac0d1d8c8860a2191c602a3c526205c
MEDIUM: http: make option http_proxy automatically rewrite the URL

There are very few users of http_proxy, and all of them complain about
the same thing : the request is passed unmodified to the server (in its
proxy form), and it is not possible to fix it using reqrep rules because
http_proxy happens after.

So let's have http_proxy fix the URL it has analysed to get rid of the
scheme and the host part. This will do what users of this feature expect.
src/proto_http.c