Skip to content


Library Should Support Virtual Hosting #3

johngluck65 opened this Issue · 3 comments

2 participants


Steps to Reproduce
This needs to be on server that is set up to support virtual hosting

For example:

  1. Create HTTP Context with (This apparently sets the Host: resquest header)
  2. Now do a GET on



  • The location response header shows (or if it's a 302 where ever it was redirected to). This is because the call to get appears to be replacing the Host: request header with It should only do this if the Host:request header is not already set. Note also that livetest seems to explicitly prevent setting the Host: request header. I don't really understand why it's doing this.
@peritus peritus was assigned
@peritus peritus added a commit that referenced this issue
@peritus Support virtual hosting (#3) fa90e76

So, here's what you do:

Set HTTP Host       
Set Request Header            Host                
GET                           /path/without/hostname

There was an unneccessary (if you ask me) check in livetest (that I'm using underneath) that prevented this from working in the first place.

@peritus peritus closed this

Reported upstream at storborg/livetest#7 — and pushed to PyPI as v0.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.