http binary mode

This commit is contained in:
kepler155c@gmail.com committed 2019-04-19 19:03:34 -04:00
1 parent 54660c6089
commit 3beae64ad8
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -484,8 +484,8 @@ function Util.loadTable(fname)
end
--[[ loading and running functions ]] --
function Util.httpGet(url, headers)
local h, msg = http.get(url, headers)
function Util.httpGet(url, headers, isBinary)
local h, msg = http.get(url, headers, isBinary)
if h then
local contents = h.readAll()
h.close()
+1 -1
View File
@@ -99,5 +99,5 @@ function page:eventHandler(event)
end
local args = { ... }
UI:setPage(#args[1] and topicPage or page, args[1])
UI:setPage(args[1] and topicPage or page, args[1])
UI:pullEvents()