adjust to netlib api changes
Merge pull request #15 from mitmproxy/stream

adjust to netlib api changes