summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar Louis Brauer2024-05-27 16:25:20 +0200
committerGravatar Louis Brauer2024-05-27 19:01:04 +0200
commit26fbda787d0d5c8ba9259f79f4d2f937bd6c8ead (patch)
tree8615eda88a882eb4959abf707a693374f22d9752 /httpd.c
parentUse ISO C99 __func__ instead of GNU __FUNCTION__ (diff)
downloadpenes-snac2-26fbda787d0d5c8ba9259f79f4d2f937bd6c8ead.tar.gz
penes-snac2-26fbda787d0d5c8ba9259f79f4d2f937bd6c8ead.tar.xz
penes-snac2-26fbda787d0d5c8ba9259f79f4d2f937bd6c8ead.zip
Translate status codes to canonical status texts
Use those in HTTP responses instead of "OK"/"ERROR". Apps like Tokodon show only the status text in unexpected responses.
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpd.c b/httpd.c
index 1c60a56..d566b1e 100644
--- a/httpd.c
+++ b/httpd.c
@@ -442,7 +442,7 @@ void httpd_connection(FILE *f)
442 if (p_state->use_fcgi) 442 if (p_state->use_fcgi)
443 xs_fcgi_response(f, status, headers, body, b_size, fcgi_id); 443 xs_fcgi_response(f, status, headers, body, b_size, fcgi_id);
444 else 444 else
445 xs_httpd_response(f, status, headers, body, b_size); 445 xs_httpd_response(f, status, http_status_text(status), headers, body, b_size);
446 446
447 fclose(f); 447 fclose(f);
448 448