summaryrefslogtreecommitdiffhomepage
path: root/libs/httpclient/luasrc/httpclient.lua
diff options
context:
space:
mode:
Diffstat (limited to 'libs/httpclient/luasrc/httpclient.lua')
-rw-r--r--libs/httpclient/luasrc/httpclient.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/httpclient/luasrc/httpclient.lua b/libs/httpclient/luasrc/httpclient.lua
index aacc79a5bb..93eed05c63 100644
--- a/libs/httpclient/luasrc/httpclient.lua
+++ b/libs/httpclient/luasrc/httpclient.lua
@@ -92,7 +92,7 @@ function request_to_source(uri, options)
if not status then
return status, response, buffer
elseif status ~= 200 and status ~= 206 then
- return nil, status, response
+ return nil, status, buffer
end
if response.headers["Transfer-Encoding"] == "chunked" then