1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 03:58:12 +00:00

WebServer: Add missing space to HTTP error responses

Fixes #1200.
This commit is contained in:
Andreas Kling 2020-02-09 17:05:29 +01:00
parent db2ede9427
commit c45a5ff840

View file

@ -83,7 +83,7 @@ void Client::handle_request(ByteBuffer raw_request)
void Client::send_error_response(unsigned code, const StringView& message, const Core::HttpRequest& request) void Client::send_error_response(unsigned code, const StringView& message, const Core::HttpRequest& request)
{ {
StringBuilder builder; StringBuilder builder;
builder.appendf("HTTP/1.0 %u", code); builder.appendf("HTTP/1.0 %u ", code);
builder.append(message); builder.append(message);
builder.append("\r\n\r\n"); builder.append("\r\n\r\n");
builder.append("<!DOCTYPE html><html><body><h1>"); builder.append("<!DOCTYPE html><html><body><h1>");