Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
88147da5
Commit
88147da5
authored
Nov 10, 2011
by
Naoki Kambe
Browse files
[917] change the evaluation of the requested URI path
parent
567f822d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/bin/stats/stats_httpd.py.in
View file @
88147da5
...
...
@@ -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():
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment