diff options
author | Loïc Hoguin <[email protected]> | 2013-02-07 17:13:46 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-02-07 17:13:46 +0100 |
commit | cb15243d8b91458f1c5e2a7e0c664f7b76f593ad (patch) | |
tree | 1d60d0fa5b06e037a0febd9bd435aa53841a3b4b /examples | |
parent | ae401f7460664256de588d9a0bfee4c3b1560738 (diff) | |
parent | fbdd3af63ec7b490a5d3b7c4c5bb26a039452849 (diff) | |
download | cowboy-cb15243d8b91458f1c5e2a7e0c664f7b76f593ad.tar.gz cowboy-cb15243d8b91458f1c5e2a7e0c664f7b76f593ad.tar.bz2 cowboy-cb15243d8b91458f1c5e2a7e0c664f7b76f593ad.zip |
Merge branch 'improve_basic_auth_example' of git://github.com/acammack/cowboy
Diffstat (limited to 'examples')
-rw-r--r-- | examples/basic_auth/src/toppage_handler.erl | 2 |
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) -> |