Skip to content

Commit e6d84f4

Browse files
committed
fix urls
1 parent 9b6deb7 commit e6d84f4

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

examples/test_async.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ loop(Ref) ->
2929
main(_) ->
3030
application:ensure_all_started(hackney),
3131

32-
Url = <<"https://friendpaste.com/_all_languages">>,
32+
Url = <<"https://httparrot.herokuapp.com/get">>,
3333
Opts = [async],
3434
{ok, Ref} = hackney:get(Url, [], <<>>, Opts),
3535
loop(Ref).

examples/test_async_once.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ main(_) ->
2929
application:ensure_all_started(hackney),
3030

3131

32-
Url = <<"https://friendpaste.com/_all_languages">>,
32+
Url = <<"https://httparrot.herokuapp.com/get">>,
3333
Opts = [{async, once}],
3434
{ok, Ref} = hackney:get(Url, [], <<>>, Opts),
3535
io:format("received once~n", []),

examples/test_async_once2.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ loop(Ref) ->
3030
main(_) ->
3131
application:ensure_all_started(hackney),
3232

33-
Url = <<"https://friendpaste.com/_all_languages">>,
33+
Url = <<"https://httparrot.herokuapp.com/get">>,
3434
Opts = [{async, once}],
3535
{ok, Ref} = hackney:get(Url, [], <<>>, Opts),
3636
io:format("received once~n", []),

examples/test_multiple.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ wait_request() ->
1212
request(WaitPid) ->
1313
wait_request(),
1414
Method = get,
15-
Url = <<"https://friendpaste.com">>,
15+
Url = <<"https://httparrot.herokuapp.com/get">>,
1616
Headers = [{<<"Connection">>, <<"keep-alive">>}],
1717
Options = [{pool, default}],
1818
{ok, _, _Headers, Ref} = hackney:request(Method, Url, Headers, <<>>, Options),

examples/test_multiple_async.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ wait_request() ->
2525

2626
request(WaitPid) ->
2727
wait_request(),
28-
Url = <<"https://friendpaste.com/_all_languages">>,
28+
Url = <<"https://httparrot.herokuapp.com/get">>,
2929
Opts = [async],
3030
{ok, Ref} = hackney:get(Url, [], <<>>, Opts),
3131
loop(Ref, WaitPid).

examples/test_multiple_proxy.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ wait_request() ->
1616
request(WaitPid) ->
1717
wait_request(),
1818
Method = get,
19-
Url = <<"https://friendpaste.com">>,
19+
Url = <<"https://httparrot.herokuapp.com/get">>,
2020
Headers = [{<<"Connection">>, <<"keep-alive">>}],
2121
Options = [{pool, default}, {proxy, ?PROXY_OPTS}],
2222
{ok, _, _Headers, Ref} = hackney:request(Method, Url, Headers, <<>>, Options),

examples/test_streamto.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ main(_) ->
3030
application:ensure_all_started(hackney),
3131
Self = self(),
3232
Pid = spawn(fun() -> wait_response(Self) end),
33-
Url = <<"https://friendpaste.com/_all_languages">>,
33+
Url = <<"https://httparrot.herokuapp.com/get">>,
3434
Opts = [async, {stream_to, Pid}],
3535
{ok, Ref} = hackney:get(Url, [], <<>>, Opts),
3636
receive

0 commit comments

Comments
 (0)