# HG changeset patch # User Matthew Wild # Date 1366057580 -3600 # Node ID de19e6005f1a7ae59c6afbee43f9df69d0400e6f # Parent dc9485ac266bae895bcf875a9ddc4dc8dd434550# Parent 50cbea68586f5cc3ef1a32c8d49952cf59d3c503 Merge 0.9->trunk diff -r dc9485ac266b -r de19e6005f1a net/http/parser.lua --- 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;