diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-03-26 06:05:20 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-03-26 06:05:20 +0000 |
commit | e5a090b01cd5b490f7331235b7c58c36c05bb7b6 (patch) | |
tree | 8f98ae6217650ac0b9d1c04f1ad1d3fb77af3d37 /test | |
parent | e77f1792005088f55353c6c85fe9335e60772754 (diff) | |
download | luasocket-e5a090b01cd5b490f7331235b7c58c36c05bb7b6.tar.gz luasocket-e5a090b01cd5b490f7331235b7c58c36c05bb7b6.tar.bz2 luasocket-e5a090b01cd5b490f7331235b7c58c36c05bb7b6.zip |
Using socket pumps in http.lua.
Adjusted socket.try.
Diffstat (limited to 'test')
-rw-r--r-- | test/httptest.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/httptest.lua b/test/httptest.lua index 4ec0cc1..c16ef2b 100644 --- a/test/httptest.lua +++ b/test/httptest.lua | |||
@@ -411,6 +411,7 @@ local body | |||
411 | io.write("testing simple get function: ") | 411 | io.write("testing simple get function: ") |
412 | body = socket.http.get("http://" .. host .. prefix .. "/index.html") | 412 | body = socket.http.get("http://" .. host .. prefix .. "/index.html") |
413 | assert(body == index) | 413 | assert(body == index) |
414 | print("ok") | ||
414 | 415 | ||
415 | ------------------------------------------------------------------------ | 416 | ------------------------------------------------------------------------ |
416 | io.write("testing HEAD method: ") | 417 | io.write("testing HEAD method: ") |
@@ -420,6 +421,7 @@ response = socket.http.request { | |||
420 | url = "http://www.cs.princeton.edu/~diego/" | 421 | url = "http://www.cs.princeton.edu/~diego/" |
421 | } | 422 | } |
422 | assert(response and response.headers) | 423 | assert(response and response.headers) |
424 | print("ok") | ||
423 | 425 | ||
424 | ------------------------------------------------------------------------ | 426 | ------------------------------------------------------------------------ |
425 | print("passed all tests") | 427 | print("passed all tests") |