mirror of
https://github.com/kepler155c/opus
synced 2024-12-31 19:00:27 +00:00
http binary mode
This commit is contained in:
parent
54660c6089
commit
3beae64ad8
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user