mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
inputreq: only use REQUEST_URI if no SCRIPT_NAME is set (otherwise reconstruct the path)
This commit is contained in:
parent
b6e988d9a1
commit
2bfe5d4f9e
@ -85,7 +85,7 @@ class DirectWSGIInputRequest(object):
|
|||||||
|
|
||||||
def get_full_request_uri(self):
|
def get_full_request_uri(self):
|
||||||
req_uri = self.env.get('REQUEST_URI')
|
req_uri = self.env.get('REQUEST_URI')
|
||||||
if req_uri:
|
if req_uri and not self.env.get('SCRIPT_NAME'):
|
||||||
return req_uri
|
return req_uri
|
||||||
|
|
||||||
req_uri = quote(self.env.get('PATH_INFO', ''), safe='/~!$&\'()*+,;=:@')
|
req_uri = quote(self.env.get('PATH_INFO', ''), safe='/~!$&\'()*+,;=:@')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user