projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d34301e
)
net.http.parser: Remove accidentally-committed debugging
author
Matthew Wild
<mwild1@gmail.com>
Mon, 15 Apr 2013 20:25:59 +0000
(21:25 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Mon, 15 Apr 2013 20:25:59 +0000
(21:25 +0100)
net/http/parser.lua
patch
|
blob
|
history
diff --git
a/net/http/parser.lua
b/net/http/parser.lua
index 9688e0520a61173a7eec27e920d6fc36fb977aca..f9e6cea0607d1c74f3d26203fad8374370a344d1 100644
(file)
--- 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;