net/http/parser.lua
changeset 7638 6879a220917b
parent 7637 b1132d74f54c
child 8048 55a56dc935f2
equal deleted inserted replaced
7637:b1132d74f54c 7638:6879a220917b
   132 					state = true;
   132 					state = true;
   133 				end
   133 				end
   134 				if state then -- read body
   134 				if state then -- read body
   135 					if client then
   135 					if client then
   136 						if chunked then
   136 						if chunked then
       
   137 							if chunk_start and buflen - chunk_start - 2 < chunk_size then
       
   138 								return;
       
   139 							end -- not enough data
   137 							if buftable then buf, buftable = t_concat(buf), false; end
   140 							if buftable then buf, buftable = t_concat(buf), false; end
   138 							if not buf:find("\r\n", nil, true) then
   141 							if not buf:find("\r\n", nil, true) then
   139 								return;
   142 								return;
   140 							end -- not enough data
   143 							end -- not enough data
   141 							if not chunk_size then
   144 							if not chunk_size then