Skip to content

Commit

Permalink
amended get_combined_value.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmwang committed Oct 15, 2012
1 parent 888ceb5 commit 53ee10b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/mochiweb_headers.erl
Expand Up @@ -128,12 +128,10 @@ get_combined_value(K, T) ->
undefined -> undefined ->
undefined; undefined;
V -> V ->
UniqueValuesList = sets:to_list(sets:from_list(string:tokens(V, " ,"))), case sets:to_list(sets:from_list(string:tokens(V, " ,"))) of
case length(UniqueValuesList) =:= 1 of [Val] ->
true ->
[Val|_Ignore] = UniqueValuesList,
Val; Val;
false -> _ ->
undefined undefined
end end
end. end.
Expand Down

0 comments on commit 53ee10b

Please sign in to comment.