Skip to content

Commit

Permalink
fix urls
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Apr 3, 2018
1 parent 9b6deb7 commit e6d84f4
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/test_async.erl
Expand Up @@ -29,7 +29,7 @@ loop(Ref) ->
main(_) ->
application:ensure_all_started(hackney),

Url = <<"https://friendpaste.com/_all_languages">>,
Url = <<"https://httparrot.herokuapp.com/get">>,
Opts = [async],
{ok, Ref} = hackney:get(Url, [], <<>>, Opts),
loop(Ref).
2 changes: 1 addition & 1 deletion examples/test_async_once.erl
Expand Up @@ -29,7 +29,7 @@ main(_) ->
application:ensure_all_started(hackney),


Url = <<"https://friendpaste.com/_all_languages">>,
Url = <<"https://httparrot.herokuapp.com/get">>,
Opts = [{async, once}],
{ok, Ref} = hackney:get(Url, [], <<>>, Opts),
io:format("received once~n", []),
Expand Down
2 changes: 1 addition & 1 deletion examples/test_async_once2.erl
Expand Up @@ -30,7 +30,7 @@ loop(Ref) ->
main(_) ->
application:ensure_all_started(hackney),

Url = <<"https://friendpaste.com/_all_languages">>,
Url = <<"https://httparrot.herokuapp.com/get">>,
Opts = [{async, once}],
{ok, Ref} = hackney:get(Url, [], <<>>, Opts),
io:format("received once~n", []),
Expand Down
2 changes: 1 addition & 1 deletion examples/test_multiple.erl
Expand Up @@ -12,7 +12,7 @@ wait_request() ->
request(WaitPid) ->
wait_request(),
Method = get,
Url = <<"https://friendpaste.com">>,
Url = <<"https://httparrot.herokuapp.com/get">>,
Headers = [{<<"Connection">>, <<"keep-alive">>}],
Options = [{pool, default}],
{ok, _, _Headers, Ref} = hackney:request(Method, Url, Headers, <<>>, Options),
Expand Down
2 changes: 1 addition & 1 deletion examples/test_multiple_async.erl
Expand Up @@ -25,7 +25,7 @@ wait_request() ->

request(WaitPid) ->
wait_request(),
Url = <<"https://friendpaste.com/_all_languages">>,
Url = <<"https://httparrot.herokuapp.com/get">>,
Opts = [async],
{ok, Ref} = hackney:get(Url, [], <<>>, Opts),
loop(Ref, WaitPid).
Expand Down
2 changes: 1 addition & 1 deletion examples/test_multiple_proxy.erl
Expand Up @@ -16,7 +16,7 @@ wait_request() ->
request(WaitPid) ->
wait_request(),
Method = get,
Url = <<"https://friendpaste.com">>,
Url = <<"https://httparrot.herokuapp.com/get">>,
Headers = [{<<"Connection">>, <<"keep-alive">>}],
Options = [{pool, default}, {proxy, ?PROXY_OPTS}],
{ok, _, _Headers, Ref} = hackney:request(Method, Url, Headers, <<>>, Options),
Expand Down
2 changes: 1 addition & 1 deletion examples/test_streamto.erl
Expand Up @@ -30,7 +30,7 @@ main(_) ->
application:ensure_all_started(hackney),
Self = self(),
Pid = spawn(fun() -> wait_response(Self) end),
Url = <<"https://friendpaste.com/_all_languages">>,
Url = <<"https://httparrot.herokuapp.com/get">>,
Opts = [async, {stream_to, Pid}],
{ok, Ref} = hackney:get(Url, [], <<>>, Opts),
receive
Expand Down

0 comments on commit e6d84f4

Please sign in to comment.