mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
net.http.server: Fix typo in previous commit
This commit is contained in:
parent
e1128dbdbc
commit
adfd306e6e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue