From d772eaf36eafaf56c2c4032ca5432866390da47a Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 8 Feb 2019 22:53:33 +0000 Subject: [PATCH] need to `.items()` a dict to tuple-iterate it (rest_api.py) --- modules/rest_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rest_api.py b/modules/rest_api.py index 6e95d73f..a8411648 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -28,7 +28,7 @@ class Handler(http.server.BaseHTTPRequestHandler): def _respond(self, code, headers, data): self.send_response(code) - for key, value in headers: + for key, value in headers.items(): self.send_header(key, value) self.end_headers() self.wfile.write(data.encode("utf8"))