Skip to content

Commit b66001a

Browse files
committed
Tests: Switch to httpcan.org
1 parent 16083b6 commit b66001a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tests/tests_other.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,11 +795,11 @@ void Tests::networkPost()
795795
const auto script = R"(
796796
r = NetworkRequest();
797797
r.headers['Content-Type'] = 'text/plain';
798-
s = r.request('POST', 'https://httpbun.org/post?hello=1', 'Hello');
798+
s = r.request('POST', 'https://httpcan.org/post?hello=1', 'Hello');
799799
json = s.data;
800800
try {
801801
data = JSON.parse(str(json));
802-
userAgent = data.headers['User-Agent'].replace(/\\/.*/, '/xyz');
802+
userAgent = data.headers['user-agent'].replace(/\\/.*/, '/xyz');
803803
[data.data, JSON.stringify(data.args), userAgent, s.status];
804804
} catch (e) {
805805
[`Error parsing JSON response: ${e}\n`, json, s.status];

0 commit comments

Comments
 (0)