Seems to be working.

This commit is contained in:
Diego Nehab 2004-06-17 23:19:38 +00:00
parent 07dda08c5d
commit 62799a416d
3 changed files with 4 additions and 2 deletions

4
TODO
View File

@ -2,13 +2,14 @@
ajeitar os README.*
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
check garbage collection in test*.lua
manual
socket.skip
send return convention changed.
* compatibility: select sets are associative
* add socket.connect and socket.bind to the manual
* add shutdown
@ -157,3 +158,4 @@ these are done
* use coroutines instead of fancy filters
* add socket.TIMEOUT to be default timeout? no.
* use gethostname it in SMTP
* smtp.o goes to mime.dll

View File

@ -140,7 +140,6 @@ local function sget(u)
return tget(gett)
end
--function socket.protect(f) return f end
get = socket.protect(function(gett)
if type(gett) == "string" then return sget(gett)
else return tget(gett) end

View File

@ -70,6 +70,7 @@ io.write("testing request uri correctness: ")
local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string"
local back, c, h = http.request("http://" .. host .. forth)
if not back then fail(c) end
print(back)
back = url.parse(back)
if similar(back.query, "this+is+the+query+string") then print("ok")
else fail(back.query) end