aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-12-01 22:00:18 +0100
committerKim Alvefur <zash@zash.se>2023-12-01 22:00:18 +0100
commita26b39e1b72f2c4d1fbecb9e91479f5c3d092a54 (patch)
treefd430366124d130d1646d0e3d3c088f7af16fc7a
parent6187c44ca905824d9a713f36e8e35531a5ea2363 (diff)
downloadprosody-a26b39e1b72f2c4d1fbecb9e91479f5c3d092a54.tar.gz
prosody-a26b39e1b72f2c4d1fbecb9e91479f5c3d092a54.zip
net.http.server: Fix whitespace-ignoring syntax
-rw-r--r--net/http/server.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/http/server.lua b/net/http/server.lua
index 88907fcc..edc6d879 100644
--- a/net/http/server.lua
+++ b/net/http/server.lua
@@ -109,8 +109,8 @@ function runner_callbacks:error(err)
log("error", "Traceback[httpserver]: %s", err);
local response = { headers = { content_type = "text/plain" }; body = "" };
response.body = events.fire_event("http-error", { code = 500; private_message = err; response = response });
- self.data.conn:write("HTTP/1.0 500 Internal Server Error\r\n\z\
- X-Content-Type-Options: nosniff\r\n\z\
+ self.data.conn:write("HTTP/1.0 500 Internal Server Error\r\n\z
+ X-Content-Type-Options: nosniff\r\n\z
Content-Type: " .. response.headers.content_type .. "\r\n\r\n");
self.data.conn:write(response.body);
self.data.conn:close();