Permalink
Browse files

yaws_api: Fix matching of Content-Type in parse_post/1

"application/x-www-form-urlencoded" can be followed by attributes, such
as "; charset=UTF-8".
  • Loading branch information...
1 parent b8fd96c commit 2fa5eadead96fd5fdc37b9de82717c12d20b5b78 @dumbbell dumbbell committed Jul 23, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/yaws_api.erl
View
@@ -175,7 +175,7 @@ parse_post(Arg) ->
undefined ->
H = Arg#arg.headers,
Res = case H#headers.content_type of
- "application/x-www-form-urlencoded" ->
+ "application/x-www-form-urlencoded"++_ ->
case Arg#arg.clidata of
[] -> [];
D -> parse_post_data_urlencoded(D)

0 comments on commit 2fa5ead

Please sign in to comment.