mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 12:28:21 +01:00
Seems to be working.
This commit is contained in:
parent
07dda08c5d
commit
62799a416d
4
TODO
4
TODO
@ -2,13 +2,14 @@
|
|||||||
ajeitar os README.*
|
ajeitar os README.*
|
||||||
ajeitar as referencias a RFCS e LTNS em todos os arquivos.
|
ajeitar as referencias a RFCS e LTNS em todos os arquivos.
|
||||||
|
|
||||||
smtp.o goes to mime.dll
|
|
||||||
make sure sockets are closed when exceptions are raised
|
make sure sockets are closed when exceptions are raised
|
||||||
|
|
||||||
check garbage collection in test*.lua
|
check garbage collection in test*.lua
|
||||||
|
|
||||||
|
|
||||||
manual
|
manual
|
||||||
|
socket.skip
|
||||||
|
send return convention changed.
|
||||||
* compatibility: select sets are associative
|
* compatibility: select sets are associative
|
||||||
* add socket.connect and socket.bind to the manual
|
* add socket.connect and socket.bind to the manual
|
||||||
* add shutdown
|
* add shutdown
|
||||||
@ -157,3 +158,4 @@ these are done
|
|||||||
* use coroutines instead of fancy filters
|
* use coroutines instead of fancy filters
|
||||||
* add socket.TIMEOUT to be default timeout? no.
|
* add socket.TIMEOUT to be default timeout? no.
|
||||||
* use gethostname it in SMTP
|
* use gethostname it in SMTP
|
||||||
|
* smtp.o goes to mime.dll
|
||||||
|
@ -140,7 +140,6 @@ local function sget(u)
|
|||||||
return tget(gett)
|
return tget(gett)
|
||||||
end
|
end
|
||||||
|
|
||||||
--function socket.protect(f) return f end
|
|
||||||
get = socket.protect(function(gett)
|
get = socket.protect(function(gett)
|
||||||
if type(gett) == "string" then return sget(gett)
|
if type(gett) == "string" then return sget(gett)
|
||||||
else return tget(gett) end
|
else return tget(gett) end
|
||||||
|
@ -70,6 +70,7 @@ io.write("testing request uri correctness: ")
|
|||||||
local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string"
|
local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string"
|
||||||
local back, c, h = http.request("http://" .. host .. forth)
|
local back, c, h = http.request("http://" .. host .. forth)
|
||||||
if not back then fail(c) end
|
if not back then fail(c) end
|
||||||
|
print(back)
|
||||||
back = url.parse(back)
|
back = url.parse(back)
|
||||||
if similar(back.query, "this+is+the+query+string") then print("ok")
|
if similar(back.query, "this+is+the+query+string") then print("ok")
|
||||||
else fail(back.query) end
|
else fail(back.query) end
|
||||||
|
Loading…
Reference in New Issue
Block a user