From a26b39e1b72f2c4d1fbecb9e91479f5c3d092a54 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 1 Dec 2023 22:00:18 +0100 Subject: net.http.server: Fix whitespace-ignoring syntax --- net/http/server.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net/http') 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(); -- cgit v1.2.3