Software /
code /
prosody
Diff
net/http/server.lua @ 5776:bd0ff8ae98a8
Remove all trailing whitespace
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Fri, 09 Aug 2013 17:48:21 +0200 |
parent | 5754:dee0f05ccf70 |
child | 6071:420c0d3b8583 |
line wrap: on
line diff
--- a/net/http/server.lua Fri Aug 09 16:03:48 2013 +0200 +++ b/net/http/server.lua Fri Aug 09 17:48:21 2013 +0200 @@ -204,7 +204,7 @@ err_code, err = 400, "Missing or invalid 'Host' header"; end end - + if err then response.status_code = err_code; response:send(events.fire_event("http-error", { code = err_code, message = err })); @@ -250,7 +250,7 @@ if response.finished then return; end response.finished = true; response.conn._http_open_response = nil; - + local status_line = "HTTP/"..response.request.httpversion.." "..(response.status or codes[response.status_code]); local headers = response.headers; body = body or response.body or "";