projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7b9b77
)
libs/httpclient: return server response line in error case (#249)
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 25 Jun 2011 22:57:18 +0000
(22:57 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 25 Jun 2011 22:57:18 +0000
(22:57 +0000)
libs/httpclient/luasrc/httpclient.lua
patch
|
blob
|
history
diff --git
a/libs/httpclient/luasrc/httpclient.lua
b/libs/httpclient/luasrc/httpclient.lua
index aacc79a5bb851cab5832931cfb534968c2f378cf..93eed05c63d4f4c723fdca58b8740a43590efca0 100644
(file)
--- 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