aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-10-26 19:41:49 +0200
committerLoïc Hoguin <[email protected]>2011-10-26 19:41:49 +0200
commit725e2729966aff18da1a84ae9a1fbd2506afc03f (patch)
tree61caa7316387cb76045315238fd342d45f17e8aa /src/cowboy_http.erl
parent20204fd33ef5040428f6d9e3c8e640a7b16abc9d (diff)
downloadcowboy-725e2729966aff18da1a84ae9a1fbd2506afc03f.tar.gz
cowboy-725e2729966aff18da1a84ae9a1fbd2506afc03f.tar.bz2
cowboy-725e2729966aff18da1a84ae9a1fbd2506afc03f.zip
cowboy_http:media_range/2 should expect to not have whitespace before it
Diffstat (limited to 'src/cowboy_http.erl')
-rw-r--r--src/cowboy_http.erl7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl
index 5036d63..ee8902a 100644
--- a/src/cowboy_http.erl
+++ b/src/cowboy_http.erl
@@ -67,13 +67,6 @@ list(Data, Fun, Acc) ->
%% @doc Parse a media range.
-spec media_range(binary(), fun()) -> any().
media_range(Data, Fun) ->
- whitespace(Data,
- fun (<<>>) -> {error, badarg};
- (Rest) -> media_range_type(Rest, Fun)
- end).
-
--spec media_range_type(binary(), fun()) -> any().
-media_range_type(Data, Fun) ->
token_ci(Data,
fun (_Rest, <<>>) -> {error, badarg};
(Rest, Type) -> whitespace(Rest,