libs/httpclient: return server response line in error case (#249)

This commit is contained in:
Jo-Philipp Wich 2011-06-25 22:57:18 +00:00
parent e7b9b7798d
commit ded8dae503

View file

@ -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