diff options
Diffstat (limited to 'plugins/static')
-rw-r--r-- | plugins/static/static.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/static/static.c b/plugins/static/static.c index 61cd259..5152068 100644 --- a/plugins/static/static.c +++ b/plugins/static/static.c @@ -76,14 +76,14 @@ static struct buffer build_response_headers(const char *status, const char *cont static void send_404(int sock) { const char *body = "404 Not found"; - struct buffer buffer = build_response_headers("404 Not found", NULL, strlen(body)); + struct buffer buffer = build_response_headers("404 Not found", "text/plain", strlen(body)); buffer_append_str(&buffer, body); sendall(sock, buffer.buf, buffer.len); } static void send_500(int sock) { const char *body = "500 Internal server error"; - struct buffer buffer = build_response_headers("500 Internal server error", NULL, strlen(body)); + struct buffer buffer = build_response_headers("500 Internal server error", "text/plain", strlen(body)); buffer_append_str(&buffer, body); sendall(sock, buffer.buf, buffer.len); } |