diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-01-21 12:43:00 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-01-21 12:43:00 +1300 |
commit | d5e3722c97c2094032fe02095c3b8f7cb4df87c3 (patch) | |
tree | 457bc724192c9eae0900aa2e13a09e9d3300d266 /test/sslserv.py | |
parent | 2a09cad420f2d74246deda7c48552b089714a0b6 (diff) | |
download | mitmproxy-d5e3722c97c2094032fe02095c3b8f7cb4df87c3.tar.gz mitmproxy-d5e3722c97c2094032fe02095c3b8f7cb4df87c3.tar.bz2 mitmproxy-d5e3722c97c2094032fe02095c3b8f7cb4df87c3.zip |
Fix an issue caused by some editors when editing a request/response body.
Many editors make it hard save a file without a terminating newline on the last
line. When editing message bodies, this can cause problems. For now, I just
strip the newlines off the end of the body when we return from an editor.
Diffstat (limited to 'test/sslserv.py')
-rw-r--r-- | test/sslserv.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sslserv.py b/test/sslserv.py index 4aa4df39..557ce869 100644 --- a/test/sslserv.py +++ b/test/sslserv.py @@ -18,5 +18,5 @@ class SecureHTTPServer(HTTPServer): def make(port): - server_address = ('', port) + server_address = ('127.0.0.1', port) return SecureHTTPServer(server_address, handler.TestRequestHandler) |