diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-01-18 00:04:20 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-01-18 00:04:20 +0000 |
commit | c8d58798f0b0c789df5c566494112f81ac302432 (patch) | |
tree | 40c52eab0a4bf92636ebe13027d165f0b8452bb1 /test/httptest.lua | |
parent | 02ef4e7daae6bef629dcb568052755fb85ed2efc (diff) | |
download | luasocket-c8d58798f0b0c789df5c566494112f81ac302432.tar.gz luasocket-c8d58798f0b0c789df5c566494112f81ac302432.tar.bz2 luasocket-c8d58798f0b0c789df5c566494112f81ac302432.zip |
Trying to get connect-with-timeout to work. Darwin works...
Diffstat (limited to 'test/httptest.lua')
-rw-r--r-- | test/httptest.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/httptest.lua b/test/httptest.lua index 9d9fa25..d3a4dc0 100644 --- a/test/httptest.lua +++ b/test/httptest.lua | |||
@@ -314,9 +314,10 @@ body = socket.http.get { | |||
314 | check(body == index) | 314 | check(body == index) |
315 | 315 | ||
316 | io.write("testing HEAD method: ") | 316 | io.write("testing HEAD method: ") |
317 | socket.http.TIMEOUT = 1 | ||
317 | response = socket.http.request { | 318 | response = socket.http.request { |
318 | method = "HEAD", | 319 | method = "HEAD", |
319 | url = "http://www.tecgraf.puc-rio.br/~diego/" | 320 | url = "http://www.cs.princeton.edu/~diego/" |
320 | } | 321 | } |
321 | check(response and response.headers) | 322 | check(response and response.headers) |
322 | 323 | ||