mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-29 19:10:26 +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
Notes:
sideshowbarker
2024-07-18 05:19:15 +09:00
Author: https://github.com/mrkct Commit: https://github.com/SerenityOS/serenity/commit/0ae5de8c3cf Pull-request: https://github.com/SerenityOS/serenity/pull/9594
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…
Reference in a new issue