diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2013-03-03 12:16:09 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2013-03-03 12:16:09 +1300 |
commit | 1fe1a802adbef93b5b024a85d8dafb112ed652bb (patch) | |
tree | 2fdfec5c63eb81f6c438f00c62dcb7df25500db5 /netlib | |
parent | 0acab862a65ef4a1823a1bfb702d8be1e3d7b83d (diff) | |
download | mitmproxy-1fe1a802adbef93b5b024a85d8dafb112ed652bb.tar.gz mitmproxy-1fe1a802adbef93b5b024a85d8dafb112ed652bb.tar.bz2 mitmproxy-1fe1a802adbef93b5b024a85d8dafb112ed652bb.zip |
100% test coverage.
Diffstat (limited to 'netlib')
-rw-r--r-- | netlib/http_auth.py | 2 | ||||
-rw-r--r-- | netlib/tcp.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/netlib/http_auth.py b/netlib/http_auth.py index d478ab10..4adae179 100644 --- a/netlib/http_auth.py +++ b/netlib/http_auth.py @@ -96,7 +96,7 @@ class PassManHtpasswd: salt = parts[2], hashed_password = parts[3] ) - + def test(self, username, password_token): ui = self.usernames.get(username) if not ui: diff --git a/netlib/tcp.py b/netlib/tcp.py index 485d821f..07b28cf9 100644 --- a/netlib/tcp.py +++ b/netlib/tcp.py @@ -298,7 +298,7 @@ class BaseHandler: self.close() self.wfile.close() self.rfile.close() - except socket.error: + except (socket.error, NetLibDisconnect): # Remote has disconnected pass |