0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Merge branch 'improve_basic_auth_example' of git://github.com/acammack/cowboy

This commit is contained in:
Loïc Hoguin 2013-02-07 17:13:46 +01:00
commit cb15243d8b

View file

@ -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) ->