Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (12 sloc) 0.288 kB
-module(authmodtest).
-export([auth/2]).
-include("../../include/yaws.hrl").
-include("../../include/yaws_api.hrl").
auth(Arg, _Auth) ->
H = Arg#arg.headers,
case H#headers.authorization of
{"foo", "bar", _} ->
true;
_ ->
false
end.
Jump to Line
Something went wrong with that request. Please try again.