Index: util/net/http_transport_test_server.py |
diff --git a/util/net/http_transport_test_server.py b/util/net/http_transport_test_server.py |
index ac6c834cdba33907783f41ecd004675981951afc..66dea8ef78aa8cc9ff4bc4608078c0b583756f56 100755 |
--- a/util/net/http_transport_test_server.py |
+++ b/util/net/http_transport_test_server.py |
@@ -118,6 +118,10 @@ class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): |
def Main(): |
+ if sys.platform == 'win32': |
+ import os, msvcrt |
+ msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) |
+ |
# Start the server. |
server = BaseHTTPServer.HTTPServer(('127.0.0.1', 0), RequestHandler) |