fix https://github.com/mitmproxy/netlib/pull/49
Merge pull request #17 from mhils/patch-1

potential fix https://github.com/mitmproxy/netlib/pull/49