Bugfix of error document
This commit is contained in:
@ -112,6 +112,7 @@ int client_request_handler(sock *client, int req_num) {
|
||||
res.status->code >= 300 && res.status->code < 400 ? "info" : "error");
|
||||
sprintf(buf, "%i", len);
|
||||
http_add_header_field(&res.hdr, "Content-Length", buf);
|
||||
http_add_header_field(&res.hdr, "Content-Type", "text/html; charset=UTF-8");
|
||||
} else {
|
||||
http_add_header_field(&res.hdr, "Content-Length", "0");
|
||||
}
|
||||
|
@ -143,7 +143,7 @@ const char *http_error_document =
|
||||
" }\n"
|
||||
" h1 {\n"
|
||||
" margin: 0.5em 0;\n"
|
||||
" font-size: 1.75em;\n"
|
||||
" font-size: 1.5em;\n"
|
||||
" }\n"
|
||||
" p {\n"
|
||||
" text-align: center;\n"
|
||||
|
Reference in New Issue
Block a user