aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-08-20 15:08:21 -0400
committerMatthew Wild <mwild1@gmail.com>2011-08-20 15:08:21 -0400
commit0b8455a432d2e9f33742461e674d57d663482a0a (patch)
tree29c9292a43030927a3941f6f4ea255758e46ce15 /net
parent80c0a2c47045c59218f185c4d878ff09eef7da0e (diff)
downloadprosody-0b8455a432d2e9f33742461e674d57d663482a0a.tar.gz
prosody-0b8455a432d2e9f33742461e674d57d663482a0a.zip
net.http: Small fix to prevent traceback when connection fails before sending the request
Diffstat (limited to 'net')
-rw-r--r--net/http.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/http.lua b/net/http.lua
index 5b9831ac..c37288fe 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -61,6 +61,7 @@ end
local function request_reader(request, data, startpos)
if not request.parser then
+ if not data then return; end
local function success_cb(r)
if request.callback then
for k,v in pairs(r) do request[k] = v; end