aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_multipart.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_multipart.erl')
-rw-r--r--src/cowboy_multipart.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cowboy_multipart.erl b/src/cowboy_multipart.erl
index b7aeb54..2428b52 100644
--- a/src/cowboy_multipart.erl
+++ b/src/cowboy_multipart.erl
@@ -45,8 +45,10 @@ content_disposition(Data) ->
cowboy_http:token_ci(Data,
fun (_Rest, <<>>) -> {error, badarg};
(Rest, Disposition) ->
- cowboy_http:content_type_params(Rest,
- fun (Params) -> {Disposition, Params} end, [])
+ cowboy_http:params(Rest,
+ fun (<<>>, Params) -> {Disposition, Params};
+ (_Rest2, _) -> {error, badarg}
+ end)
end).
%% Internal.