| 1 | |
| 2 | |
| 3 | @@ -123,7 +123,7 @@
|
| 4 | timeout_bytes_response = nil
|
| 5 | -- make request
|
| 6 | local ok, rstatus, rheaders, rstatus_line = request {
|
| 7 | - url = "http://localhost:49500/some/path",
|
| 8 | + url = "http://127.0.0.1:49500/some/path",
|
| 9 | method = "POST",
|
| 10 | headers = request_headers,
|
| 11 | timeout = timeout,
|
| 12 | @@ -163,7 +163,7 @@
|
| 13 | timeout_bytes_response = nil
|
| 14 | -- make request
|
| 15 | local ok, rstatus, rheaders, rstatus_line = request {
|
| 16 | - url = "http://localhost:49500/some/path",
|
| 17 | + url = "http://127.0.0.1:49500/some/path",
|
| 18 | method = "POST",
|
| 19 | headers = request_headers,
|
| 20 | timeout = timeout,
|
| 21 | @@ -203,7 +203,7 @@
|
| 22 | timeout_bytes_response = nil
|
| 23 | -- make request
|
| 24 | local ok, rstatus, rheaders, rstatus_line = request {
|
| 25 | - url = "http://localhost:49500/some/path",
|
| 26 | + url = "http://127.0.0.1:49500/some/path",
|
| 27 | method = "POST",
|
| 28 | headers = request_headers,
|
| 29 | timeout = timeout,
|
| 30 | @@ -243,7 +243,7 @@
|
| 31 | timeout_bytes_response = 100 -- after 100 bytes, is still in the headers
|
| 32 | -- make request
|
| 33 | local ok, rstatus, rheaders, rstatus_line = request {
|
| 34 | - url = "http://localhost:49500/some/path",
|
| 35 | + url = "http://127.0.0.1:49500/some/path",
|
| 36 | method = "POST",
|
| 37 | headers = request_headers,
|
| 38 | timeout = timeout,
|
| 39 | @@ -283,7 +283,7 @@
|
| 40 | timeout_bytes_response = #response - 500 -- body = 1024, so 500 before end is right in the middle of the body
|
| 41 | -- make request
|
| 42 | local ok, rstatus, rheaders, rstatus_line = request {
|
| 43 | - url = "http://localhost:49500/some/path",
|
| 44 | + url = "http://127.0.0.1:49500/some/path",
|
| 45 | method = "POST",
|
| 46 | headers = request_headers,
|
| 47 | timeout = timeout,
|
| 48 | |
| 49 | |
| 50 | @@ -61,7 +61,7 @@
|
| 51 | skt:close()
|
| 52 | end)
|
| 53 | -- execute test request
|
| 54 | - local _, code, headers = doreq("http://localhost:9876/") -- http --> http redirect
|
| 55 | + local _, code, headers = doreq("http://127.0.0.1:9876/") -- http --> http redirect
|
| 56 | copas.removeserver(server) -- immediately close server again
|
| 57 | assert(tonumber(code)==200)
|
| 58 | assert(headers.location == "http://www.httpvshttps.com")
|