From d1565c62e0af2ecff2d9f469bf933af7d693c93a Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Thu, 28 May 2020 22:54:48 -0600 Subject: [PATCH] oops in loadfile replacement --- sys/boot/opus.boot | 2 +- sys/modules/opus/util.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/boot/opus.boot b/sys/boot/opus.boot index da4a3c4..f189ad5 100644 --- a/sys/boot/opus.boot +++ b/sys/boot/opus.boot @@ -1,7 +1,7 @@ local fs = _G.fs -- override bios function to include the actual filename -function _G.loadfile(filename, env) +function _G.loadfile(filename, mode, env) -- Support the previous `loadfile(filename, env)` form instead. if type(mode) == "table" and env == nil then mode, env = nil, mode diff --git a/sys/modules/opus/util.lua b/sys/modules/opus/util.lua index 3d69dcf..ec3c7d6 100644 --- a/sys/modules/opus/util.lua +++ b/sys/modules/opus/util.lua @@ -13,6 +13,7 @@ local _unpack = table.unpack local _bor = bit32.bor local _bxor = bit32.bxor +-- support multiple simultaneous gets for same url if not http.safeGet then -- really no good place to put this hack local reqs = { }