| 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
|
|
|