Software /
code /
prosody
Diff
net/http/server.lua @ 13261:7c62370dee9a
net.http.server: Fix typo in previous commit
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 23 Sep 2023 15:48:21 +0200 |
parent | 13260:da21185fd026 |
line wrap: on
line diff
--- a/net/http/server.lua Fri Sep 22 01:47:21 2023 +0200 +++ b/net/http/server.lua Sat Sep 23 15:48:21 2023 +0200 @@ -111,7 +111,7 @@ 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