aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-02-07 17:13:46 +0100
committerLoïc Hoguin <[email protected]>2013-02-07 17:13:46 +0100
commitcb15243d8b91458f1c5e2a7e0c664f7b76f593ad (patch)
tree1d60d0fa5b06e037a0febd9bd435aa53841a3b4b
parentae401f7460664256de588d9a0bfee4c3b1560738 (diff)
parentfbdd3af63ec7b490a5d3b7c4c5bb26a039452849 (diff)
downloadcowboy-cb15243d8b91458f1c5e2a7e0c664f7b76f593ad.tar.gz
cowboy-cb15243d8b91458f1c5e2a7e0c664f7b76f593ad.tar.bz2
cowboy-cb15243d8b91458f1c5e2a7e0c664f7b76f593ad.zip
Merge branch 'improve_basic_auth_example' of git://github.com/acammack/cowboy
-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) ->