diff options
Diffstat (limited to 'src/luasocket/http.lua')
-rw-r--r-- | src/luasocket/http.lua | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/luasocket/http.lua b/src/luasocket/http.lua index bd04c1a..7356489 100644 --- a/src/luasocket/http.lua +++ b/src/luasocket/http.lua @@ -27,11 +27,7 @@ local SCHEMES = { , https = { port = 443 , create = function(t) - local https = assert( - require("ssl.https"), 'LuaSocket: LuaSec not found') - local tcp = assert( - https.tcp, 'LuaSocket: Function tcp() not available from LuaSec') - return tcp(t) end }} + return https.tcp(t) end }} -- default scheme and port for document retrieval local SCHEME = 'http' |