Commit 6c2c46cb authored by Lasse Karstensen's avatar Lasse Karstensen

allow get params without 404ing

parent 97859633
......@@ -28,6 +28,10 @@ TAIL_CONTENT="""
class requesthandler(BaseHTTPRequestHandler):
# http://docs.python.org/library/basehttpserver.html#BaseHTTPServer.BaseHTTPRequestHandler
def do_GET(self):
# remove any GET-args
if "?" in self.path:
self.path = self.path[0:self.path.index("?")]
if self.path == "/":
self.send_response(302, "Moved temporarily")
self.send_header("Location", "/devicetest/")
......
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