aboutsummaryrefslogtreecommitdiff
path: root/modules/rest_api.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-12-06 12:03:58 +0000
committerGravatar jesopo2018-12-06 12:03:58 +0000
commit9918a72f80d2fb529ab6789a4651273680eff52c (patch)
tree7280ec6df7443c65fea927f61d689b89f17084af /modules/rest_api.py
parent'content-type' -> 'Content-Type' (github.py) (diff)
signature
.items() on self.headers, to correctly use it for a dict comprehension
(rest_api.py)
Diffstat (limited to 'modules/rest_api.py')
-rw-r--r--modules/rest_api.py2
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