diff options
| author | 2019-09-10 13:45:55 +0100 | |
|---|---|---|
| committer | 2019-09-10 13:45:55 +0100 | |
| commit | 86530686501b68aa75fe3a6d61c6de8f3dcec7c3 (patch) | |
| tree | f987739e8233b4fede355862681625efc27d9ba3 /modules/rest_api.py | |
| parent | set response.code=200 as soon as we know there's a hook waiting for it (diff) | |
| signature | ||
'code' -> 'response.code'
Diffstat (limited to 'modules/rest_api.py')
| -rw-r--r-- | modules/rest_api.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/rest_api.py b/modules/rest_api.py index 6f8df034..5b50bb5f 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -124,7 +124,8 @@ class Handler(http.server.BaseHTTPRequestHandler): self._respond(response) _log.debug("[HTTP] finishing _handle for %s from %s:%d (%d)", - [method, self.client_address[0], self.client_address[1], code]) + [method, self.client_address[0], self.client_address[1], + response.code]) def do_GET(self): self._handle("GET") |
