Commit 5107d40b authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Łukasz Nowak

caddy-frontend: Fix timeout on the backend

dict in headers is smallcase, so it was never working in reality.
parent 115b6bf5
......@@ -585,7 +585,7 @@ class TestMasterRequestDomain(HttpFrontendTestCase, TestDataMixin):
class TestHandler(BaseHTTPRequestHandler):
def do_GET(self):
timeout = int(self.headers.dict.get('Timeout', '0'))
timeout = int(self.headers.dict.get('timeout', '0'))
time.sleep(timeout)
self.send_response(200)
......
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