aboutsummaryrefslogtreecommitdiffstats
path: root/net/http/parser.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-02 00:24:37 +0200
committerKim Alvefur <zash@zash.se>2017-04-02 00:24:37 +0200
commitd6f2c308a4151199c34d3baeb910f40c64d55be8 (patch)
tree5749f7a93bf1a098085221f3bbcde3c238c778d5 /net/http/parser.lua
parent75ed409006e229b29beeaff5807f227ace290eef (diff)
parent3811ceb6cac48480c300c6ed09dc555e5cec754d (diff)
downloadprosody-d6f2c308a4151199c34d3baeb910f40c64d55be8.tar.gz
prosody-d6f2c308a4151199c34d3baeb910f40c64d55be8.zip
Merge 0.10->trunk
Diffstat (limited to 'net/http/parser.lua')
-rw-r--r--net/http/parser.lua2
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