Cowboy parse_qs only returning first value

PROBLEM - parse_qs should return a list of all variables according to documentation, but only returns the first one.

1 Like

I am not sure what the problem is, though when I do quick test then i see that cow_qs:parse_qs/1 does return a list of all found name/value pairs:

(zotonic@PoToi)1> cow_qs:parse_qs(<<"a=1&a=2">>).
[{<<"a">>,<<"1">>},{<<"a">>,<<"2">>}]
1 Like

Help everyone help you by providing code that we can check out, compile, and run to see the issue.

2 Likes