Skip to content

Commit 795a5c4

Browse files
committed
use postman-echo and not httpbin
1 parent 6dbce69 commit 795a5c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example/test.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ local function test_download_json()
3232
end
3333

3434
local function test_head()
35-
local code, response = https.request("https://httpbin.org/get", {method = "HEAD"})
35+
local code, response = https.request("https://postman-echo.com/get", {method = "HEAD"})
3636
assert(code == 200, "expected code 200, got "..code)
3737
assert(#response == 0, "expected empty response")
3838
end
3939

4040
local function test_custom_header()
4141
local headerName = "RandomNumber"
4242
local random = math.random(1, 1000)
43-
local code, response = https.request("https://httpbin.org/get", {
43+
local code, response = https.request("https://postman-echo.com/get", {
4444
headers = {
4545
[headerName] = tostring(random)
4646
}
@@ -71,7 +71,7 @@ local function test_send(method, kind)
7171
contentType = "application/x-www-form-urlencoded"
7272
end
7373

74-
local code, response = https.request("https://httpbin.org/"..method:lower(), {
74+
local code, response = https.request("https://postman-echo.com/"..method:lower(), {
7575
headers = {["Content-Type"] = contentType},
7676
data = input(data),
7777
method = method

0 commit comments

Comments
 (0)