From d5e3722c97c2094032fe02095c3b8f7cb4df87c3 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 21 Jan 2012 12:43:00 +1300 Subject: 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. --- test/serv.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/serv.py') diff --git a/test/serv.py b/test/serv.py index 53747f08..f6dee2cc 100644 --- a/test/serv.py +++ b/test/serv.py @@ -4,7 +4,5 @@ from BaseHTTPServer import HTTPServer import handler def make(port): - server_address = ('', port) + server_address = ('127.0.0.1', port) return HTTPServer(server_address, handler.TestRequestHandler) - - -- cgit v1.2.3