aboutsummaryrefslogtreecommitdiffstats
path: root/examples/basic_auth/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic_auth/src')
-rw-r--r--examples/basic_auth/src/toppage_handler.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/basic_auth/src/toppage_handler.erl b/examples/basic_auth/src/toppage_handler.erl
index 94383d4..dc044a5 100644
--- a/examples/basic_auth/src/toppage_handler.erl
+++ b/examples/basic_auth/src/toppage_handler.erl
@@ -18,7 +18,7 @@ is_authorized(Req, S) ->
{<<"basic">>, {User = <<"Alladin">>, <<"open sesame">>}} ->
{true, Req1, User};
_ ->
- {{false, <<"Restricted">>}, Req1, S}
+ {{false, <<"Basic realm=\"cowboy\"">>}, Req1, S}
end.
content_types_provided(Req, State) ->