Changeset 0125b2531941b473e32bfa0a8542c18f9ca43a7b
- Timestamp:
- 02/21/10 05:53:27
(8 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1266731607 +0000
- git-parent:
[d00b3d5de1f858f8204da9db700a44f9b103cae1]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1266731607 +0000
- Message:
fixes #262
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
rb9b0b57 |
r0125b25 |
|
119 | 119 | if str ~= nil then |
---|
120 | 120 | self.raw_bytes = self.raw_bytes + string.len(str) |
---|
| 121 | local decoded = content_enc_func(str) |
---|
| 122 | if decoded ~= nil then |
---|
| 123 | self.content_bytes = self.content_bytes + string.len(decoded) |
---|
| 124 | end |
---|
| 125 | if self.hooks.consume ~= nil then self.hooks.consume(decoded) end |
---|
121 | 126 | end |
---|
122 | 127 | until str == nil or string.len(str) ~= len |
---|
123 | | local decoded = content_enc_func(str) |
---|
124 | | if decoded ~= nil then |
---|
125 | | self.content_bytes = self.content_bytes + string.len(decoded) |
---|
126 | | end |
---|
127 | | if self.hooks.consume ~= nil then self.hooks.consume(decoded) end |
---|
128 | 128 | end |
---|
129 | 129 | |
---|
r7d70182 |
r0125b25 |
|
599 | 599 | } |
---|
600 | 600 | } |
---|
| 601 | if(len == 0) { |
---|
| 602 | /* EOF */ |
---|
| 603 | *read_complete = 1; |
---|
| 604 | lua_pushlstring(cl->L, cl->inbuff, cl->inbuff_len); |
---|
| 605 | cl->inbuff_len = 0; |
---|
| 606 | } |
---|
601 | 607 | return len; |
---|
602 | 608 | } |
---|