| Index: third_party/crashpad/crashpad/util/net/http_transport_test_server.py
|
| diff --git a/third_party/crashpad/crashpad/util/net/http_transport_test_server.py b/third_party/crashpad/crashpad/util/net/http_transport_test_server.py
|
| index 3f085a56690922beb9e0ecfa17bc63deb4181939..3d3c55a43da3bc415e6bc99c4d0f29085308bb91 100755
|
| --- a/third_party/crashpad/crashpad/util/net/http_transport_test_server.py
|
| +++ b/third_party/crashpad/crashpad/util/net/http_transport_test_server.py
|
| @@ -26,7 +26,7 @@ process one HTTP request, deliver the prearranged response to the client, and
|
| write the entire request to stdout. It will then terminate.
|
|
|
| This server is written in Python since it provides a simple HTTP stack, and
|
| -because parsing Chunked encoding is safer and easier in a memory-safe language.
|
| +because parsing chunked encoding is safer and easier in a memory-safe language.
|
| This could easily have been written in C++ instead.
|
| """
|
|
|
| @@ -80,7 +80,7 @@ class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
| RequestHandler.raw_request = self.rfile.buffer
|
| self.rfile.buffer = ''
|
|
|
| - if self.headers.get('Transfer-Encoding', '') == 'Chunked':
|
| + if self.headers.get('Transfer-Encoding', '').lower() == 'chunked':
|
| body = self.handle_chunked_encoding()
|
| else:
|
| length = int(self.headers.get('Content-Length', -1))
|
| @@ -130,6 +130,10 @@ class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
| return -1
|
| return int(chunk_size_and_ext_line[:chunk_size_end], base=16)
|
|
|
| + def log_request(self, code='-', size='-'):
|
| + # The default implementation logs these to sys.stderr, which is just noise.
|
| + pass
|
| +
|
|
|
| def Main():
|
| if sys.platform == 'win32':
|
|
|