diff options
| author | 2019-02-08 22:53:33 +0000 | |
|---|---|---|
| committer | 2019-02-08 22:53:33 +0000 | |
| commit | d772eaf36eafaf56c2c4032ca5432866390da47a (patch) | |
| tree | 0dad7d887abcae297fd4be932df1576e7e320857 /modules/rest_api.py | |
| parent | Abstract away sending response to REST API request (rest_api.py) (diff) | |
| signature | ||
need to `.items()` a dict to tuple-iterate it (rest_api.py)
Diffstat (limited to 'modules/rest_api.py')
| -rw-r--r-- | modules/rest_api.py | 2 |
1 files changed, 1 insertions, 1 deletions
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")) |
