diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-04-15 21:26:20 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-04-15 21:26:20 +0100 |
commit | 1ed9154f6b3ea8039df0b02f306b6a3682d3f024 (patch) | |
tree | 4458cad42819d93c49bb5bed4a279ea396438161 /net/http/parser.lua | |
parent | c30a7e8545d1354afe6c25018c7b74d6e09604da (diff) | |
parent | 427b82db0fd0d82101013628e0bc4158eeb72c06 (diff) | |
download | prosody-1ed9154f6b3ea8039df0b02f306b6a3682d3f024.tar.gz prosody-1ed9154f6b3ea8039df0b02f306b6a3682d3f024.zip |
Merge 0.9->trunk
Diffstat (limited to 'net/http/parser.lua')
-rw-r--r-- | net/http/parser.lua | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/http/parser.lua b/net/http/parser.lua index 9688e052..f9e6cea0 100644 --- a/net/http/parser.lua +++ b/net/http/parser.lua @@ -133,7 +133,6 @@ function httpstream.new(success_cb, error_cb, parser_type, options_cb) buf = buf:gsub("^.-\r\n\r\n", ""); -- This ensure extensions and trailers are stripped success_cb(packet); elseif #buf - chunk_start + 2 >= chunk_size then -- we have a chunk - print(chunk_start, chunk_size, ("%q"):format(buf)) packet.body = packet.body..buf:sub(chunk_start, chunk_start + (chunk_size-1)); buf = buf:sub(chunk_start + chunk_size + 2); chunk_size, chunk_start = nil, nil; |