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

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

Issue 9307006: Fix PostOnlyFileHandler in testserver.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove debugging cruft Created 8 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 b116e2ee33d75e09cce00dce63a826e84cb9852c..f9177897cc6e17b64a3fa075498365b96f0a7b81 100755
--- a/net/tools/testserver/testserver.py
+++ b/net/tools/testserver/testserver.py
@@ -915,7 +915,7 @@ class TestPageHandler(BasePageHandler):
def PostOnlyFileHandler(self):
"""This handler sends the contents of the requested file on a POST."""
- prefix = self.server.file_root_url + '/post/'
+ prefix = urlparse.urljoin(self.server.file_root_url, 'post/')
if not self.path.startswith(prefix):
return False
self.ReadRequestBody()
« 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