projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed last commit
[project/luci.git]
/
libs
/
httpclient
/
luasrc
/
httpclient
/
receiver.lua
diff --git
a/libs/httpclient/luasrc/httpclient/receiver.lua
b/libs/httpclient/luasrc/httpclient/receiver.lua
index
852a10d
..
c12a673
100644
(file)
--- a/
libs/httpclient/luasrc/httpclient/receiver.lua
+++ b/
libs/httpclient/luasrc/httpclient/receiver.lua
@@
-203,10
+203,11
@@
function request_to_file(uri, target, options, cbs)
end
if cbs.on_header then
- if cbs.on_header(file, code, resp) == false then
+ local stat = {cbs.on_header(file, code, resp)}
+ if stat[1] == false then
file:close()
sock:close()
- return
true
+ return
unpack(stat)
end
end