mirror of
https://github.com/bjc/prosody.git
synced 2025-04-06 22:57:38 +03:00
net.httpserver: Don't upset logger when response is nil
This commit is contained in:
parent
fc9b65727f
commit
0e37b231f2
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ local function send_response(request, response)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
-- Response we have is just a string (the body)
|
-- Response we have is just a string (the body)
|
||||||
log("debug", "Sending response to %s: %s", request.id, response);
|
log("debug", "Sending response to %s: %s", request.id or "<none>", response or "<none>");
|
||||||
|
|
||||||
resp = { "HTTP/1.0 200 OK\r\n" };
|
resp = { "HTTP/1.0 200 OK\r\n" };
|
||||||
t_insert(resp, "Connection: close\r\n");
|
t_insert(resp, "Connection: close\r\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue