diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2013-01-28 21:59:03 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2013-01-28 21:59:03 +1300 |
commit | 57f01ffb07a7f32fa9679787e8894cf4917b022b (patch) | |
tree | c01dc6ae80fa36d4ba7faa628abb06406b31be83 /libmproxy/proxy.py | |
parent | 1e0bab65e3131829560383d147a192e0912c2fe9 (diff) | |
download | mitmproxy-57f01ffb07a7f32fa9679787e8894cf4917b022b.tar.gz mitmproxy-57f01ffb07a7f32fa9679787e8894cf4917b022b.tar.bz2 mitmproxy-57f01ffb07a7f32fa9679787e8894cf4917b022b.zip |
Test suite, remove extraneous code.
Diffstat (limited to 'libmproxy/proxy.py')
-rw-r--r-- | libmproxy/proxy.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py index d2452e36..9e2dd126 100644 --- a/libmproxy/proxy.py +++ b/libmproxy/proxy.py @@ -96,11 +96,8 @@ class ServerConnection(tcp.TCPClient): d = request._assemble() if not d: raise ProxyError(502, "Cannot transmit an incomplete request.") - try: - self.wfile.write(d) - self.wfile.flush() - except socket.error, err: - raise ProxyError(502, 'Error sending data to "%s": %s' % (request.host, err)) + self.wfile.write(d) + self.wfile.flush() def terminate(self): try: |