]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[http] Include port in HTTP Host header as needed
authorMalte Starostik <lists@malte.homeip.net>
Fri, 15 Jul 2011 14:31:56 +0000 (16:31 +0200)
committerMichael Brown <mcb30@ipxe.org>
Fri, 15 Jul 2011 15:46:58 +0000 (16:46 +0100)
commit69b7d57265679d76e26581d034e8f8ab5168bb27
tree0b8f11582156d520e1bbaf529a5f048fbb937aef
parent5d23fb1bb4adffdf3b497136246c5c924416d32c
[http] Include port in HTTP Host header as needed

According to section 14.23 of RFC2616, an HTTP Host header without
port implies the default port is used.  Thus, when fetching from
anywhere but port 80 for HTTP or 443 for HTTPS, the port ought to be
explicitly given in that header.  Otherwise, some servers might fail
to associate the request with the correct virtual host or generate
incorrect self-referencing URLs.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tcp/http.c