diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-10-16 23:00:42 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-10-16 23:00:42 +0500 |
commit | b7e51a203d3d95961294c711ae0d9c449ddb040d (patch) | |
tree | 376af083a7225da43a8659f6d0d6184966d10baa /net/http.lua | |
parent | 85b44a1dfd59fee9a26527cc759ef72780a1668c (diff) | |
download | prosody-b7e51a203d3d95961294c711ae0d9c449ddb040d.tar.gz prosody-b7e51a203d3d95961294c711ae0d9c449ddb040d.zip |
Monster whitespace commit (beware the whitespace monster).
Diffstat (limited to 'net/http.lua')
-rw-r--r-- | net/http.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/http.lua b/net/http.lua index 11407c4d..63ae31ad 100644 --- a/net/http.lua +++ b/net/http.lua @@ -19,7 +19,7 @@ local listener = connlisteners_get("httpclient") or error("No httpclient listene local t_insert, t_concat = table.insert, table.concat; local pairs, ipairs = pairs, ipairs; local tonumber, tostring, xpcall, select, debug_traceback, char, format = - tonumber, tostring, xpcall, select, debug.traceback, string.char, string.format; + tonumber, tostring, xpcall, select, debug.traceback, string.char, string.format; local log = require "util.logger".init("http"); @@ -46,10 +46,10 @@ function formencode(form) end local function expectbody(reqt, code) - if reqt.method == "HEAD" then return nil end - if code == 204 or code == 304 or code == 301 then return nil end - if code >= 100 and code < 200 then return nil end - return 1 + if reqt.method == "HEAD" then return nil end + if code == 204 or code == 304 or code == 301 then return nil end + if code >= 100 and code < 200 then return nil end + return 1 end local function request_reader(request, data, startpos) |