http binary mode

This commit is contained in:
kepler155c@gmail.com 2019-04-19 19:03:34 -04:00
parent 54660c6089
commit 3beae64ad8
2 changed files with 3 additions and 3 deletions

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()

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()