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

Unified Diff: net/tools/testserver/testserver.py

Issue 6391003: Roll back an incorrect change to SyncPageHandler.ChromiumSyncCommandHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/testserver/testserver.py
diff --git a/net/tools/testserver/testserver.py b/net/tools/testserver/testserver.py
index f44fabc543191e806e88df73d93ebacaebfb40e3..9bad8623e9f27b9a19306ba54b58036f2836f512 100755
--- a/net/tools/testserver/testserver.py
+++ b/net/tools/testserver/testserver.py
@@ -1339,7 +1339,8 @@ class SyncPageHandler(BasePageHandler):
if not self._ShouldHandleRequest(test_name):
return False
- raw_request = self.ReadRequestBody()
+ length = int(self.headers.getheader('content-length'))
+ raw_request = self.rfile.read(length)
http_response, raw_reply = self.server.HandleCommand(
self.path, raw_request)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698