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