diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-13 17:32:32 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-13 17:32:32 +0300 |
commit | 2b026054acc59337d13ecb49d02d1247455ffe89 (patch) | |
tree | 38cf54ce404182d1df8279300e5b47a47604481b /app.py | |
parent | workflows/ci: deploy to Docker Hub, not to host directly (diff) | |
download | void-2b026054acc59337d13ecb49d02d1247455ffe89.tar.gz void-2b026054acc59337d13ecb49d02d1247455ffe89.zip |
app.py: print HTTP status when CGIing
Diffstat (limited to 'app.py')
-rwxr-xr-x | app.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -34,6 +34,7 @@ class Response: self.write_body_as_cgi_script() def write_headers_as_cgi_script(self): + print(f'{self.status.value} {self.status.phrase}') for name, val in self.headers(): print(f'{name}: {val}') print() |