Commit Graph

3 Commits

Author SHA1 Message Date
László Károlyi
31bb1bcc23
Fixing non-bytes headers, adding proxyhost+proxyport custom headers
The headers on my environment aren't bytes, rather str-s, and so
getting the host and port from those will result None being passed
as a result.

Also, since X-Forwarded-For is not to be trusted, and custom nginx
configurations can pass a `X-Real-IP` header, add two extra command
line parameters to be able to parse custom passed remote IP headers.
2018-05-10 17:22:27 +02:00
Andrew Godwin
08e7841718 Fix import ordering 2017-11-28 18:03:29 -08:00
Andrew Godwin
b72349d2c1 HTTP protocol tests 2017-11-25 18:23:54 -08:00