From f99286572caf42bc09df069d465fee61301d1791 Mon Sep 17 00:00:00 2001 From: "Yichun Zhang (agentzh)" Date: Wed, 5 Nov 2014 10:32:05 -0800 Subject: [PATCH] bugfix: the "maxsize" option of new() was broken. --- lib/resty/http/simple.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/resty/http/simple.lua b/lib/resty/http/simple.lua index aab6d8d..2d0e907 100644 --- a/lib/resty/http/simple.lua +++ b/lib/resty/http/simple.lua @@ -287,6 +287,9 @@ local function _receive(self, sock) end if not body then + if err then + return nil, err + end keepalive = false end