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