Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 2fa5eadead96fd5fdc37b9de82717c12d20b5b78 1 parent b8fd96c
Jean-Sébastien Pédron dumbbell authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/yaws_api.erl
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.