mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-18 23:09:56 +02:00
Changes due to new compat-5.1
This commit is contained in:
@ -15,7 +15,7 @@ local mime = require("mime")
|
||||
local string = require("string")
|
||||
local base = require("base")
|
||||
local table = require("table")
|
||||
local http = module("socket.http")
|
||||
module("socket.http")
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
-- Program constants
|
||||
@ -259,4 +259,4 @@ request = socket.protect(function(reqt, body)
|
||||
else return trequest(reqt) end
|
||||
end)
|
||||
|
||||
base.setmetatable(http, nil)
|
||||
base.getmetatable(_M).__index = nil
|
||||
|
Reference in New Issue
Block a user