diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-11 11:02:59 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-11 11:35:13 +0200 |
commit | ce5bb34296429bd2401bb51c01522dd0c1bfbf83 (patch) | |
tree | 7adb6b23abbbeaab6bcae63acf555c1861afe670 /src/app.py | |
parent | src: shorter import (diff) | |
download | linux-status-ce5bb34296429bd2401bb51c01522dd0c1bfbf83.tar.gz linux-status-ce5bb34296429bd2401bb51c01522dd0c1bfbf83.zip |
app.py: print HTTP status when CGIing
Diffstat (limited to '')
-rwxr-xr-x | src/app.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -90,6 +90,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() |