Fixed last commit
[project/luci.git] / libs / httpclient / luasrc / httpclient / receiver.lua
index 5599273..c12a673 100644 (file)
@@ -207,7 +207,7 @@ function request_to_file(uri, target, options, cbs)
                if stat[1] == false then
                        file:close()
                        sock:close()
                if stat[1] == false then
                        file:close()
                        sock:close()
-                       return false, unpack(stat, 2)
+                       return unpack(stat)
                end
        end
 
                end
        end