diff options
author | Adam Cammmack <[email protected]> | 2013-02-04 13:28:46 -0600 |
---|---|---|
committer | Adam Cammack <[email protected]> | 2013-02-06 21:06:39 -0600 |
commit | fbdd3af63ec7b490a5d3b7c4c5bb26a039452849 (patch) | |
tree | 1d60d0fa5b06e037a0febd9bd435aa53841a3b4b | |
parent | ae401f7460664256de588d9a0bfee4c3b1560738 (diff) | |
download | cowboy-fbdd3af63ec7b490a5d3b7c4c5bb26a039452849.tar.gz cowboy-fbdd3af63ec7b490a5d3b7c4c5bb26a039452849.tar.bz2 cowboy-fbdd3af63ec7b490a5d3b7c4c5bb26a039452849.zip |
Improve basic_auth example
Some web browsers will now prompt for user name and password
-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) -> |