aboutsummaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-09-23 15:48:21 +0200
committerKim Alvefur <zash@zash.se>2023-09-23 15:48:21 +0200
commitadfd306e6ec56e709dc1eed522acb36c20c2b19e (patch)
tree9b1f18bb83b1789f96960f85a5536481d45d98c4 /net/http
parente1128dbdbca14e1884b2eeb5eda235736a5b1d3e (diff)
downloadprosody-adfd306e6ec56e709dc1eed522acb36c20c2b19e.tar.gz
prosody-adfd306e6ec56e709dc1eed522acb36c20c2b19e.zip
net.http.server: Fix typo in previous commit
Diffstat (limited to 'net/http')
-rw-r--r--net/http/server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/server.lua b/net/http/server.lua
index 4613783f..3d7d52b7 100644
--- a/net/http/server.lua
+++ b/net/http/server.lua
@@ -111,7 +111,7 @@ function runner_callbacks:error(err)
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\
- Content-Type: " .. response.header.content_type .. "\r\n\r\n");
+ Content-Type: " .. response.headers.content_type .. "\r\n\r\n");
self.data.conn:write(response.body);
self.data.conn:close();
end