diff options
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: |