Commit c73dd6ee by Łukasz Nowak

caddy-frontend/test: Fix typo

1 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()
)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!