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