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
Notes: sideshowbarker 2024-07-19 09:30:47 +09:00

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)
{
StringBuilder builder;
builder.appendf("HTTP/1.0 %u", code);
builder.appendf("HTTP/1.0 %u ", code);
builder.append(message);
builder.append("\r\n\r\n");
builder.append("<!DOCTYPE html><html><body><h1>");