Cowboy 1 - Exceptions when using special chars in URL (%,^...)

Hi all,

Cowboy raises an exception when URL contains some special chars, for instance % or ^.

** (FunctionClauseError) no function clause matching in :cow_uri.urldecode/2 cow_uri.erl:26: :cow_uri.urldecode("%", "") (:cowboy_protocol) of listener ServerWeb.Endpoint.HTTP terminated

I’ve found this issue:
https://github.com/ninenines/cowboy/issues/1244
It’s fixed in Cowboy 2.0

Is there a way to properly handle these chars with cowboy 1.0.4, version used by Phoenix 1.3 ?
Or shall I wait for Phoenix 1.4 ? :smile:

2 Likes