1
0
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:
Ilya Kreymer 2016-03-24 16:17:46 -04:00
parent b6e988d9a1
commit 2bfe5d4f9e

View File

@ -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='/~!$&\'()*+,;=:@')