# minor fixes after test

dev-linux
Ivan Maslov 4 years ago
parent f421aaa2ea
commit 44d0f16981

@ -244,7 +244,8 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
if "ResponseDefRequestGlobal" in inURLItem:
inURLItem["ResponseDefRequestGlobal"](inRequest, inGlobalDict)
if "ResponseFolderPath" in inURLItem:
lRequestPath = inRequest.path
#lRequestPath = inRequest.path
lRequestPath = urllib.parse.unquote(inRequest.path)
if inURLItem["URL"][-1]!="/": inURLItem["URL"]+= "/" # Fix for settings
lFilePathSecondPart = lRequestPath.replace(inURLItem["URL"],"")
lFilePath = os.path.join(inURLItem["ResponseFolderPath"],lFilePathSecondPart)

Loading…
Cancel
Save