diff options
author | Kim Alvefur <zash@zash.se> | 2017-04-02 00:24:07 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-04-02 00:24:07 +0200 |
commit | 3811ceb6cac48480c300c6ed09dc555e5cec754d (patch) | |
tree | 145d8406bf680dceda67cb06b17afdeb1947a9da /net/http | |
parent | ac4e9ca0cc8bd6b946c0820cf24a39c333531a54 (diff) | |
download | prosody-3811ceb6cac48480c300c6ed09dc555e5cec754d.tar.gz prosody-3811ceb6cac48480c300c6ed09dc555e5cec754d.zip |
net.http: Pass error all the way to callback
Diffstat (limited to 'net/http')
-rw-r--r-- | net/http/parser.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/parser.lua b/net/http/parser.lua index 96d32ec8..4e4ae9fb 100644 --- a/net/http/parser.lua +++ b/net/http/parser.lua @@ -46,7 +46,7 @@ function httpstream.new(success_cb, error_cb, parser_type, options_cb) packet.body = buf; success_cb(packet); elseif buf ~= "" then -- unexpected EOF - error = true; return error_cb(); + error = true; return error_cb("unexpected-eof"); end return; end |