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