Commit 4980fd8c authored by Łukasz Nowak's avatar Łukasz Nowak

Follow the how-to

parent 6836dc74
...@@ -16,7 +16,7 @@ class BackendHandler(BaseHTTPServer.BaseHTTPRequestHandler): ...@@ -16,7 +16,7 @@ class BackendHandler(BaseHTTPServer.BaseHTTPRequestHandler):
self.send_header('X-Content-Type-Options', 'nosniff') self.send_header('X-Content-Type-Options', 'nosniff')
self.send_header('Access-Control-Allow-Origin', self.server.CORS_ORIGIN) self.send_header('Access-Control-Allow-Origin', self.server.CORS_ORIGIN)
self.end_headers() self.end_headers()
if self.path.startswith('/test'): if self.path.startswith('/MYTESTFILE.txt'):
self.wfile.write(self.response) self.wfile.write(self.response)
else: else:
self.wfile.write('Hello!') self.wfile.write('Hello!')
......
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