The test "def "Should proxy HTTPS request"()" demonstrates that this fix works -- previously TLS requests that were being forwarded to https://github.com had a Host header of localhost, and were being rejected by GitHub's server. Now the request is succeeding.
Coverage increased (+0.5%) to 92.308% when pulling 2e4768465c4460e26273ac7b87786a4162f1ace0 on RichardBradley:45-host-header into eb0e381ac53c0367a416d1719f12956282228651 on mkopylec:master.
This fixes #45
The test "
def "Should proxy HTTPS request"()
" demonstrates that this fix works -- previously TLS requests that were being forwarded to https://github.com had aHost
header oflocalhost
, and were being rejected by GitHub's server. Now the request is succeeding.