mirage / ocaml-uri

RFC3986 URI parsing library for OCaml
Other
97 stars 57 forks source link

@ not encoded as %40 #145

Closed sgrove closed 4 years ago

sgrove commented 4 years ago

I don't seem to be able to construct a uri that has a %40 in the query, e.g.:

Reason # Uri.of_string("https://google.com?test=%40");
- : Uri.t = https://google.com?test=@

When talking to some APIs, I need to be able to percent-encode @ as %40 - is there a quick way to do so?

avsm commented 4 years ago

Did you find a solution for this @sgrove? Is #146 relevant?