mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
WebServer: Add 'Content-Type' header for error responses
Previously when the WebServer sent an error page the browser would show the raw HTML since we forgot to send the 'Content-Type' header
This commit is contained in:
parent
a501b903b5
commit
0ae5de8c3c
1 changed files with 1 additions and 0 deletions
|
@ -288,6 +288,7 @@ void Client::send_error_response(unsigned code, HTTP::HttpRequest const& request
|
|||
builder.append(header);
|
||||
builder.append("\r\n");
|
||||
}
|
||||
builder.append("Content-Type: text/html; charset=UTF-8\r\n");
|
||||
|
||||
builder.append("\r\n");
|
||||
builder.append("<!DOCTYPE html><html><body><h1>");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue