mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-13 06:04:31 +02:00
Trying to get connect-with-timeout to work. Darwin works...
This commit is contained in:
@ -314,9 +314,10 @@ body = socket.http.get {
|
||||
check(body == index)
|
||||
|
||||
io.write("testing HEAD method: ")
|
||||
socket.http.TIMEOUT = 1
|
||||
response = socket.http.request {
|
||||
method = "HEAD",
|
||||
url = "http://www.tecgraf.puc-rio.br/~diego/"
|
||||
url = "http://www.cs.princeton.edu/~diego/"
|
||||
}
|
||||
check(response and response.headers)
|
||||
|
||||
|
Reference in New Issue
Block a user