diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-17 23:19:38 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-17 23:19:38 +0000 |
commit | 62799a416d2b29d8058331f3d8725fb67c75d261 (patch) | |
tree | fead4d5d3d8b0167c28d2a4a2d5cbf2b2e897691 | |
parent | 07dda08c5d25dca0f8e79b80998559544aa7c398 (diff) | |
download | luasocket-62799a416d2b29d8058331f3d8725fb67c75d261.tar.gz luasocket-62799a416d2b29d8058331f3d8725fb67c75d261.tar.bz2 luasocket-62799a416d2b29d8058331f3d8725fb67c75d261.zip |
Seems to be working.
-rw-r--r-- | TODO | 4 | ||||
-rw-r--r-- | etc/dict.lua | 1 | ||||
-rw-r--r-- | test/httptest.lua | 1 |
3 files changed, 4 insertions, 2 deletions
@@ -2,13 +2,14 @@ | |||
2 | ajeitar os README.* | 2 | ajeitar os README.* |
3 | ajeitar as referencias a RFCS e LTNS em todos os arquivos. | 3 | ajeitar as referencias a RFCS e LTNS em todos os arquivos. |
4 | 4 | ||
5 | smtp.o goes to mime.dll | ||
6 | make sure sockets are closed when exceptions are raised | 5 | make sure sockets are closed when exceptions are raised |
7 | 6 | ||
8 | check garbage collection in test*.lua | 7 | check garbage collection in test*.lua |
9 | 8 | ||
10 | 9 | ||
11 | manual | 10 | manual |
11 | socket.skip | ||
12 | send return convention changed. | ||
12 | * compatibility: select sets are associative | 13 | * compatibility: select sets are associative |
13 | * add socket.connect and socket.bind to the manual | 14 | * add socket.connect and socket.bind to the manual |
14 | * add shutdown | 15 | * add shutdown |
@@ -157,3 +158,4 @@ these are done | |||
157 | * use coroutines instead of fancy filters | 158 | * use coroutines instead of fancy filters |
158 | * add socket.TIMEOUT to be default timeout? no. | 159 | * add socket.TIMEOUT to be default timeout? no. |
159 | * use gethostname it in SMTP | 160 | * use gethostname it in SMTP |
161 | * smtp.o goes to mime.dll | ||
diff --git a/etc/dict.lua b/etc/dict.lua index b9247dc..dce1658 100644 --- a/etc/dict.lua +++ b/etc/dict.lua | |||
@@ -140,7 +140,6 @@ local function sget(u) | |||
140 | return tget(gett) | 140 | return tget(gett) |
141 | end | 141 | end |
142 | 142 | ||
143 | --function socket.protect(f) return f end | ||
144 | get = socket.protect(function(gett) | 143 | get = socket.protect(function(gett) |
145 | if type(gett) == "string" then return sget(gett) | 144 | if type(gett) == "string" then return sget(gett) |
146 | else return tget(gett) end | 145 | else return tget(gett) end |
diff --git a/test/httptest.lua b/test/httptest.lua index 45d7e8d..d1f2b88 100644 --- a/test/httptest.lua +++ b/test/httptest.lua | |||
@@ -70,6 +70,7 @@ io.write("testing request uri correctness: ") | |||
70 | local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string" | 70 | local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string" |
71 | local back, c, h = http.request("http://" .. host .. forth) | 71 | local back, c, h = http.request("http://" .. host .. forth) |
72 | if not back then fail(c) end | 72 | if not back then fail(c) end |
73 | print(back) | ||
73 | back = url.parse(back) | 74 | back = url.parse(back) |
74 | if similar(back.query, "this+is+the+query+string") then print("ok") | 75 | if similar(back.query, "this+is+the+query+string") then print("ok") |
75 | else fail(back.query) end | 76 | else fail(back.query) end |