|
|
|
@ -493,21 +493,6 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
|
|
|
|
|
# check if file in FileURL - File Path Mapping Dict
|
|
|
|
|
if lFileURL.lower() in gSettingsDict["FileManager"]["FileURLFilePathDict"]:
|
|
|
|
|
self.SendResponseContentTypeFile('application/octet-stream', gSettingsDict["FileManager"]["FileURLFilePathDict"][lFileURL])
|
|
|
|
|
|
|
|
|
|
# Index page
|
|
|
|
|
elif self.path == gSettingsDict["ServerDict"]["URLIndexStr"]:
|
|
|
|
|
lURLItemDict = {
|
|
|
|
|
"Method":"GET",
|
|
|
|
|
"URL": gSettingsDict["ServerDict"]["URLIndexStr"],
|
|
|
|
|
"MatchType": "EqualCase",
|
|
|
|
|
"ResponseFilePath": os.path.normpath(os.path.join(lOrchestratorFolder, "Web\\Index.xhtml")),
|
|
|
|
|
"ResponseContentType": "text/html"}
|
|
|
|
|
#Check if all condition are applied
|
|
|
|
|
lFlagURLIsApplied=False
|
|
|
|
|
lFlagURLIsApplied=self.URLItemCheckDo(lURLItemDict, "GET")
|
|
|
|
|
if lFlagURLIsApplied:
|
|
|
|
|
self.ResponseDictSend()
|
|
|
|
|
return
|
|
|
|
|
else:
|
|
|
|
|
#Set access denied code
|
|
|
|
|
# Send response status code
|
|
|
|
|