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 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

View File

@ -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

View File

@ -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