From 3beae64ad8556edcc881826dd22bee68bd1ccc6e Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Fri, 19 Apr 2019 19:03:34 -0400 Subject: [PATCH] http binary mode --- sys/apis/util.lua | 4 ++-- sys/apps/Help.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/apis/util.lua b/sys/apis/util.lua index a15e1e2..f1f5a8d 100644 --- a/sys/apis/util.lua +++ b/sys/apis/util.lua @@ -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() diff --git a/sys/apps/Help.lua b/sys/apps/Help.lua index b43d23a..d00c80b 100644 --- a/sys/apps/Help.lua +++ b/sys/apps/Help.lua @@ -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()