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