Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: third_party/crashpad/crashpad/util/net/http_transport_test_server.py

Issue 2686893003: Update Crashpad to cd284713834e4d9c184dd06643b0a87f73d9b062 (Closed)
Patch Set: Rebase atop f161e046ad6c Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/crashpad/README.chromium ('k') | third_party/crashpad/crashpad/util/net/http_transport_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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':
« no previous file with comments | « third_party/crashpad/README.chromium ('k') | third_party/crashpad/crashpad/util/net/http_transport_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698