0
0
mirror of https://github.com/openwrt/luci.git synced 2025-02-25 16:53:54 +00:00

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: 
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich
2022-11-11 00:42:14 +01:00
parent 2cbfd64dcb
commit 0141732f87

@ -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.