mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 08:04:49 +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):
|
||||
req_uri = self.env.get('REQUEST_URI')
|
||||
if req_uri:
|
||||
if req_uri and not self.env.get('SCRIPT_NAME'):
|
||||
return req_uri
|
||||
|
||||
req_uri = quote(self.env.get('PATH_INFO', ''), safe='/~!$&\'()*+,;=:@')
|
||||
|
Loading…
x
Reference in New Issue
Block a user