Changeset f5982323e614fec6b6ca1900cedb708f89020355 for src/modules-lua
- Timestamp:
- 10/31/11 18:02:35 (2 years ago)
- git-parent:
- Files:
-
- src/modules-lua/noit/HttpClient.lua (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
src/modules-lua/noit/HttpClient.lua
r801a7a7 rf598232 132 132 function te_length(self, content_enc_func) 133 133 local len = tonumber(self.headers["content-length"]) 134 len = len > 102400 and 102400 or len 134 135 repeat 135 136 local str = self.e:read(len) … … 164 165 str = self.e:read("\n") 165 166 if str ~= "\r\n" and str ~= "\n" then error("short chunked boundary read") end 167 if string.len(self.content_bytes) > 102400 then 168 break 169 end 166 170 end 167 171 -- read trailers
