summaryrefslogtreecommitdiff
path: root/Servers/WebServer
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-09 17:05:29 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-09 17:05:29 +0100
commitc45a5ff84025c2d4e7a305c7e2abb1c063ee95d4 (patch)
treed74903f22b1046b283aa6f98f5842fb7decd1a5d /Servers/WebServer
parentdb2ede94271f58765873289a3b7d51bd731949bc (diff)
downloadserenity-c45a5ff84025c2d4e7a305c7e2abb1c063ee95d4.zip
WebServer: Add missing space to HTTP error responses
Fixes #1200.
Diffstat (limited to 'Servers/WebServer')
-rw-r--r--Servers/WebServer/Client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Servers/WebServer/Client.cpp b/Servers/WebServer/Client.cpp
index 149a12dce8..dd0d6412f8 100644
--- a/Servers/WebServer/Client.cpp
+++ b/Servers/WebServer/Client.cpp
@@ -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>");