diff options
author | dv <dv@cvs.openbsd.org> | 2021-04-29 18:23:08 +0000 |
---|---|---|
committer | dv <dv@cvs.openbsd.org> | 2021-04-29 18:23:08 +0000 |
commit | 0ab927b731123de7715dbe7eea052cfb91caaf4f (patch) | |
tree | fd6f35273be6ec82684269703e85d6d9da43b726 /usr.bin/mg | |
parent | f3fed61be561efabda79c6cefec7d71e24624162 (diff) |
Use relative reference URIs in Location header on directory redirects.
This adds support for front-ending httpd(8) with a TLS-terminating
gateway like relayd(8) that forwards unencrypted http traffic.
Previously httpd(8) would use a full URL in the Location header in 301
redirects when a user-agent requests a directory but without the
trailing '/'. If the user-agent originally connected with https, this
caused the redirected url to be http.
This change conforms to RFC7231 section 7.1.2.
Reported by Vincent Lee.
OK claudio@
Diffstat (limited to 'usr.bin/mg')
0 files changed, 0 insertions, 0 deletions