diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-08-20 15:08:21 -0400 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-08-20 15:08:21 -0400 |
commit | 0b8455a432d2e9f33742461e674d57d663482a0a (patch) | |
tree | 29c9292a43030927a3941f6f4ea255758e46ce15 | |
parent | 80c0a2c47045c59218f185c4d878ff09eef7da0e (diff) | |
download | prosody-0b8455a432d2e9f33742461e674d57d663482a0a.tar.gz prosody-0b8455a432d2e9f33742461e674d57d663482a0a.zip |
net.http: Small fix to prevent traceback when connection fails before sending the request
-rw-r--r-- | net/http.lua | 1 |
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 |