summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorsatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-25 12:13:19 +0000
committersatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-25 12:13:19 +0000
commit9e284ac0db9216eb383111c6e9656c506192b816 (patch)
treef511601973ad4d7e9c3001531fb9537eb388ffa6 /net
parentd77b6046225c0e7fc9ec1670c6d7bb1c621e05c3 (diff)
downloadchromium_src-9e284ac0db9216eb383111c6e9656c506192b816.zip
chromium_src-9e284ac0db9216eb383111c6e9656c506192b816.tar.gz
chromium_src-9e284ac0db9216eb383111c6e9656c506192b816.tar.bz2
Roll back an incorrect change to SyncPageHandler.ChromiumSyncCommandHandler.
In CL http://codereview.chromium.org/6134003 I did a find/replace for all places in testserver.py that read the request body and incorrectly replaced this one as well. The intention was only to make the change to methods of TestPageHandler and not SyncPageHandler. BUG=none TEST=sync_integration_tests builds fine in the buildbots. Review URL: http://codereview.chromium.org/6391003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72486 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rwxr-xr-xnet/tools/testserver/testserver.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tools/testserver/testserver.py b/net/tools/testserver/testserver.py
index f44fabc..9bad862 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)