Software /
code /
prosody
Changeset
5478:de19e6005f1a
Merge 0.9->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 15 Apr 2013 21:26:20 +0100 |
parents | 5476:dc9485ac266b (current diff) 5477:50cbea68586f (diff) |
children | 5480:415e520e4a4c |
files | |
diffstat | 1 files changed, 0 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/http/parser.lua Mon Apr 15 21:22:45 2013 +0100 +++ b/net/http/parser.lua Mon Apr 15 21:26:20 2013 +0100 @@ -133,7 +133,6 @@ 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;