diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-08-10 20:50:05 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-08-10 20:50:05 +0200 |
commit | 6a30ad2ad236fa20d086e271ff962ebc907da027 (patch) | |
tree | 5c53dc5d5eb8a06d1caaed84b04fd137cdbee6a1 /netlib/http/http2/protocol.py | |
parent | ff27d65f08d00c312a162965c5b1db711aa8f6ed (diff) | |
download | mitmproxy-6a30ad2ad236fa20d086e271ff962ebc907da027.tar.gz mitmproxy-6a30ad2ad236fa20d086e271ff962ebc907da027.tar.bz2 mitmproxy-6a30ad2ad236fa20d086e271ff962ebc907da027.zip |
fix minor style offences
Diffstat (limited to 'netlib/http/http2/protocol.py')
-rw-r--r-- | netlib/http/http2/protocol.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/netlib/http/http2/protocol.py b/netlib/http/http2/protocol.py index 896b728b..c2ad5edd 100644 --- a/netlib/http/http2/protocol.py +++ b/netlib/http/http2/protocol.py @@ -142,13 +142,13 @@ class HTTP2Protocol(semantics.ProtocolMixin): headers = request.headers.copy() - if not ':authority' in headers.keys(): + if ':authority' not in headers.keys(): headers.add(':authority', bytes(authority), prepend=True) - if not ':scheme' in headers.keys(): + if ':scheme' not in headers.keys(): headers.add(':scheme', bytes(request.scheme), prepend=True) - if not ':path' in headers.keys(): + if ':path' not in headers.keys(): headers.add(':path', bytes(request.path), prepend=True) - if not ':method' in headers.keys(): + if ':method' not in headers.keys(): headers.add(':method', bytes(request.method), prepend=True) headers = headers.items() @@ -167,7 +167,7 @@ class HTTP2Protocol(semantics.ProtocolMixin): headers = response.headers.copy() - if not ':status' in headers.keys(): + if ':status' not in headers.keys(): headers.add(':status', bytes(str(response.status_code)), prepend=True) headers = headers.items() |