luci-lua-runtime: preload luci.ltn12
Some existing legacy code expects the luci.ltn12 namespace to be implicitly available, even without requiring it beforehand. Fixes: #6091 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
2cbfd64dcb
commit
0141732f87
1 changed files with 5 additions and 4 deletions
|
@ -2,10 +2,11 @@
|
|||
-- Licensed to the public under the Apache License 2.0.
|
||||
|
||||
local coroutine, assert, error, type, require = coroutine, assert, error, type, require
|
||||
local tmpl = require "luci.template"
|
||||
local util = require "luci.util"
|
||||
local http = require "luci.http"
|
||||
local sys = require "luci.sys"
|
||||
local tmpl = require "luci.template"
|
||||
local util = require "luci.util"
|
||||
local http = require "luci.http"
|
||||
local sys = require "luci.sys"
|
||||
local ltn12 = require "luci.ltn12"
|
||||
|
||||
|
||||
--- LuCI ucode bridge library.
|
||||
|
|
Loading…
Reference in a new issue