repoze/repoze.vhm — pull request #1 by davidjb (2012-01-06 03:50:10+00:00)
Title: Ensuring HTTP_HOST has a port set under VHM Path Filter for non-standard ports

The changes ensure that the HTTP_HOST header produced after executing VHM Path Filter have the port included for a service on a non-standard port (eg the test that has HTTP on port 8000). At present, as the host header doesn't include a non-standard port, applications down the line would likely assume the default port is in force (see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.23)

The changes also incorporate checks for the presence and correctness of the host header in the other path filter tests (and check to ensure the host header isn't added in a non-vhm URL).