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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/request.py

Issue 2448913002: wptserve: Import the latest revision of wptserve-related files. (Closed)
Patch Set: Created 4 years, 2 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
Index: third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/request.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/request.py b/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/request.py
index 0d4b4196cba36b5b111cabc88ef8eaea4fcef37a..6b8a7cef86ef2b4f156dc239e61b6375f26b8026 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/request.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/request.py
@@ -1,13 +1,12 @@
import base64
import cgi
import Cookie
-import os
import StringIO
import tempfile
import urlparse
-import stash
-from utils import HTTPException
+from . import stash
+from .utils import HTTPException
missing = object()
@@ -179,6 +178,10 @@ class Request(object):
Request path as it appears in the HTTP request.
+ .. attribute:: url_base
+
+ The prefix part of the path; typically / unless the handler has a url_base set
+
.. attribute:: url
Absolute URL for the request.
@@ -253,6 +256,7 @@ class Request(object):
host, port = host.split(":", 1)
self.request_path = request_handler.path
+ self.url_base = "/"
if self.request_path.startswith(scheme + "://"):
self.url = request_handler.path

Powered by Google App Engine
This is Rietveld 408576698