Show
Ignore:
Timestamp:
02/21/10 05:53:27 (4 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
  • src/modules-lua/noit/HttpClient.lua

    rb9b0b57 r0125b25  
    119119        if str ~= nil then 
    120120            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 
    121126        end 
    122127    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 
    128128end 
    129129