1
Fork 0
Find a file
Jan-Erik Rediger 53a13840bd Add Host header into target uri
Previously this would lead to an abort for an empty path (`/`), because
`http:/` cannot be parsed correctly.
The URI becomes the `target` in `request`, so it seems best to add the
`Host` header value too.

Note that this is still not 100% correct:
HTTP headers are case-insensitive, so it could also be `host:` or `HoSt`.
Right now headers are not normalized.
However it will not abort if `Host` is missing:
In that case `header_get` returns an empty string and then `http:///`
(three slashes) is parsed with an empty host name as expected.
2024-05-27 22:49:41 +02:00
cmd Updates for Hare upstream changes 2024-04-19 11:24:02 +02:00
net/http Add Host header into target uri 2024-05-27 22:49:41 +02:00
COPYING Initial commit 2023-02-09 11:45:25 +01:00