diff options
| author | 2018-12-06 12:03:58 +0000 | |
|---|---|---|
| committer | 2018-12-06 12:03:58 +0000 | |
| commit | 9918a72f80d2fb529ab6789a4651273680eff52c (patch) | |
| tree | 7280ec6df7443c65fea927f61d689b89f17084af | |
| parent | 'content-type' -> 'Content-Type' (github.py) (diff) | |
| signature | ||
.items() on self.headers, to correctly use it for a dict comprehension
(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 ca1ee79f..ecba53f3 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -14,7 +14,7 @@ class Handler(http.server.BaseHTTPRequestHandler): _, _, endpoint = path[1:].partition("/") endpoint, _, args = endpoint.partition("/") args = list(filter(None, args.split("/"))) - headers = {key.title(): value for key, value in self.headers} + headers = {key.title(): value for key, value in self.headers.items()} response = "" code = 404 |
