Properly handle HTTP HOST header
Merge remote-tracking branch 'upstream/master'