1
0
mirror of https://github.com/kepler155c/opus synced 2025-01-05 21:30:28 +00:00

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 end
--[[ loading and running functions ]] -- --[[ loading and running functions ]] --
function Util.httpGet(url, headers) function Util.httpGet(url, headers, isBinary)
local h, msg = http.get(url, headers) local h, msg = http.get(url, headers, isBinary)
if h then if h then
local contents = h.readAll() local contents = h.readAll()
h.close() h.close()

View File

@ -99,5 +99,5 @@ function page:eventHandler(event)
end end
local args = { ... } local args = { ... }
UI:setPage(#args[1] and topicPage or page, args[1]) UI:setPage(args[1] and topicPage or page, args[1])
UI:pullEvents() UI:pullEvents()