Skip to content

Commit

Permalink
Merge pull request #8 from agentzh/master
Browse files Browse the repository at this point in the history
bugfix: the "maxsize" option of new() was broken.
  • Loading branch information
bakins committed Nov 5, 2014
2 parents 50de195 + f992865 commit f54d5a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/resty/http/simple.lua
Expand Up @@ -287,6 +287,9 @@ local function _receive(self, sock)
end

if not body then
if err then
return nil, err
end
keepalive = false
end

Expand Down

0 comments on commit f54d5a5

Please sign in to comment.