Commit 88147da5 authored by Naoki Kambe's avatar Naoki Kambe
Browse files

[917] change the evaluation of the requested URI path

parent 567f822d
......@@ -103,14 +103,14 @@ class HttpHandler(http.server.BaseHTTPRequestHandler):
# in case of /bind10/statistics/xxx/YYY/zzz
if len(path_dirs) >= 5:
item_name = path_dirs[4]
# in case of /bind10/statistics/xxx/YYY
# in case of /bind10/statistics/xxx/YYY ...
if len(path_dirs) >= 4:
module_name = path_dirs[3]
if req_path.startswith(XML_URL_PATH):
if req_path == '/'.join([XML_URL_PATH] + path_dirs[3:5]):
body = self.server.xml_handler(module_name, item_name)
elif req_path.startswith(XSD_URL_PATH):
elif req_path == '/'.join([XSD_URL_PATH] + path_dirs[3:5]):
body = self.server.xsd_handler(module_name, item_name)
elif req_path.startswith(XSL_URL_PATH):
elif req_path == '/'.join([XSL_URL_PATH] + path_dirs[3:5]):
body = self.server.xsl_handler(module_name, item_name)
else:
if req_path == '/' and 'Host' in self.headers.keys():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment