Commit c73dd6ee authored by Łukasz Nowak's avatar Łukasz Nowak

caddy-frontend/test: Fix typo

parent 55171b94
......@@ -590,11 +590,11 @@ class TestHandler(BaseHTTPRequestHandler):
self.send_response(200)
prefix = 'x-reply-header-'
lenght = len(prefix)
length = len(prefix)
for key, value in self.headers.dict.items():
if key.startswith(prefix):
self.send_header(
'-'.join([q.capitalize() for q in key[lenght:].split('-')]),
'-'.join([q.capitalize() for q in key[length:].split('-')]),
value.strip()
)
......
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