* libs/core: Moved ltn12 inside LuCI to avoid package conflicts with luasocket
This commit is contained in:
parent
50039c134e
commit
66ec29f243
10 changed files with 11 additions and 11 deletions
|
@ -33,7 +33,7 @@ DEALINGS IN THE SOFTWARE.
|
|||
local string = require("string")
|
||||
local table = require("table")
|
||||
local base = _G
|
||||
module("ltn12")
|
||||
module("luci.ltn12")
|
||||
|
||||
filter = {}
|
||||
source = {}
|
|
@ -15,7 +15,7 @@ $Id$
|
|||
|
||||
module("luci.http.protocol", package.seeall)
|
||||
|
||||
require("ltn12")
|
||||
local ltn12 = require("luci.ltn12")
|
||||
require("luci.http.protocol.filter")
|
||||
|
||||
HTTP_MAX_CONTENT = 1024*4 -- 4 kB maximum content size
|
||||
|
|
|
@ -15,7 +15,7 @@ $Id$
|
|||
|
||||
module("luci.http.protocol.filter", package.seeall)
|
||||
|
||||
require("ltn12")
|
||||
local ltn12 = require("luci.ltn12")
|
||||
|
||||
|
||||
-- Factory that produces a filter which normalizes chunked transfer encoding
|
||||
|
|
|
@ -21,7 +21,7 @@ require("luci.http.protocol.date")
|
|||
require("luci.http.protocol.mime")
|
||||
require("luci.http.protocol.conditionals")
|
||||
require("luci.fs")
|
||||
require("ltn12")
|
||||
local ltn12 = require("luci.ltn12")
|
||||
|
||||
Simple = luci.util.class(luci.httpd.module.Handler)
|
||||
Response = luci.httpd.module.Response
|
||||
|
|
|
@ -18,7 +18,7 @@ module("luci.httpd.handler.luci", package.seeall)
|
|||
require("luci.dispatcher")
|
||||
require("luci.http")
|
||||
require("luci.http.protocol.date")
|
||||
require("ltn12")
|
||||
local ltn12 = require("luci.ltn12")
|
||||
|
||||
Luci = luci.util.class(luci.httpd.module.Handler)
|
||||
Response = luci.httpd.module.Response
|
||||
|
|
|
@ -14,7 +14,7 @@ $Id$
|
|||
module("luci.httpd.module", package.seeall)
|
||||
require("luci.util")
|
||||
require("luci.http.protocol")
|
||||
require("ltn12")
|
||||
local ltn12 = require("luci.ltn12")
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ limitations under the License.
|
|||
|
||||
]]--
|
||||
module("luci.sgi.cgi", package.seeall)
|
||||
require("ltn12")
|
||||
local ltn12 = require("luci.ltn12")
|
||||
require("luci.http")
|
||||
require("luci.sys")
|
||||
require("luci.dispatcher")
|
||||
|
|
|
@ -24,7 +24,7 @@ limitations under the License.
|
|||
|
||||
]]--
|
||||
module("luci.sgi.webuci", package.seeall)
|
||||
require("ltn12")
|
||||
local ltn12 = require("luci.ltn12")
|
||||
require("luci.http")
|
||||
require("luci.util")
|
||||
require("luci.dispatcher")
|
||||
|
|
|
@ -24,7 +24,7 @@ limitations under the License.
|
|||
|
||||
]]--
|
||||
module("luci.sgi.wsapi", package.seeall)
|
||||
require("ltn12")
|
||||
local ltn12 = require("luci.ltn12")
|
||||
require("luci.http")
|
||||
require("luci.dispatcher")
|
||||
require("luci.http.protocol")
|
||||
|
|
|
@ -25,7 +25,7 @@ limitations under the License.
|
|||
]]--
|
||||
|
||||
module("luci.http", package.seeall)
|
||||
require("ltn12")
|
||||
local ltn12 = require("luci.ltn12")
|
||||
require("luci.http.protocol")
|
||||
require("luci.util")
|
||||
|
||||
|
|
Loading…
Reference in a new issue