diff options
-rw-r--r-- | examples/basic_auth/src/toppage_handler.erl | 2 | ||||
-rwxr-xr-x | examples/rest_pastebin/start.sh | 2 |
2 files changed, 2 insertions, 2 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) -> diff --git a/examples/rest_pastebin/start.sh b/examples/rest_pastebin/start.sh index 24f5709..20e9375 100755 --- a/examples/rest_pastebin/start.sh +++ b/examples/rest_pastebin/start.sh @@ -3,4 +3,4 @@ erl -pa ebin deps/*/ebin -s rest_pastebin \ -eval "io:format(\"Upload: echo foo | curl -i --data-urlencode paste@- localhost:8080~n\")." \ -eval "io:format(\"Get: curl <value of the location header>~n\")." \ -eval "io:format(\"Get with highlighting: curl <location>?lang=<language>~n\")." \ - -eval "io:format(\"To get html, point your browser to http://localhost:8080.~n\")." + -eval "io:format(\"To get html, point your browser to http://localhost:8080~n\")." |