libs/httpclient: return server response line in error case (#249)
This commit is contained in:
parent
e7b9b7798d
commit
ded8dae503
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ function request_to_source(uri, options)
|
||||||
if not status then
|
if not status then
|
||||||
return status, response, buffer
|
return status, response, buffer
|
||||||
elseif status ~= 200 and status ~= 206 then
|
elseif status ~= 200 and status ~= 206 then
|
||||||
return nil, status, response
|
return nil, status, buffer
|
||||||
end
|
end
|
||||||
|
|
||||||
if response.headers["Transfer-Encoding"] == "chunked" then
|
if response.headers["Transfer-Encoding"] == "chunked" then
|
||||||
|
|
Loading…
Reference in a new issue