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

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

Issue 171099: Merge r21417 to 172.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Patch Set: '' Created 11 years, 4 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 | « net/proxy/proxy_script_fetcher.cc ('k') | net/url_request/url_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/testserver/testserver.py
===================================================================
--- net/tools/testserver/testserver.py (revision 23600)
+++ net/tools/testserver/testserver.py (working copy)
@@ -569,6 +569,10 @@
if not self.path.startswith(prefix):
return False
+ # Consume a request body if present.
+ if self.command == 'POST':
+ self.rfile.read(int(self.headers.getheader('content-length')))
+
file = self.path[len(prefix):]
entries = file.split('/');
path = os.path.join(self.server.data_dir, *entries)
Property changes on: net\tools\testserver\testserver.py
___________________________________________________________________
Modified: svn:mergeinfo
Merged /trunk/src/net/tools/testserver/testserver.py:r14162,15308,16015,16808,21417
« no previous file with comments | « net/proxy/proxy_script_fetcher.cc ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698