aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_http_hd.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-09-17 11:36:39 +0200
committerLoïc Hoguin <[email protected]>2018-09-17 11:36:39 +0200
commit889f26865006095bab986113ba249632523cd414 (patch)
tree39360a06fb95c3fd6e0da317f1c726a9084d30ad /src/cow_http_hd.erl
parentb1ca51bc78d9e974014e70b820c9296db4ecb4f1 (diff)
downloadcowlib-889f26865006095bab986113ba249632523cd414.tar.gz
cowlib-889f26865006095bab986113ba249632523cd414.tar.bz2
cowlib-889f26865006095bab986113ba249632523cd414.zip
Add cow_http:parse_request_line/1
Diffstat (limited to 'src/cow_http_hd.erl')
-rw-r--r--src/cow_http_hd.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cow_http_hd.erl b/src/cow_http_hd.erl
index 76d2d44..1e8faaf 100644
--- a/src/cow_http_hd.erl
+++ b/src/cow_http_hd.erl
@@ -858,6 +858,7 @@ horse_parse_allow() ->
-> {basic, binary(), binary()}
| {bearer, binary()}
| {digest, [{binary(), binary()}]}.
+%% @todo The token is case-insensitive. https://tools.ietf.org/html/rfc7235#section-2.1
parse_authorization(<<"Basic ", R/bits >>) ->
auth_basic(base64:decode(R), <<>>);
parse_authorization(<<"Bearer ", R/bits >>) when R =/= <<>> ->