[Opa] UriParser doesn't handle non-key-value query strings

Owen Gunden ogunden at phauna.org
Thu Jan 26 22:41:34 UTC 2012

This parses:


But this does not:


Per the rfc, there's no requirement that the query string be in
key/value format: http://tools.ietf.org/html/rfc3986#section-3.4

You're going to ask for a patch, right?

Patching this seems like it requires a type change through to the
interface so I'm not sure how badly you want that change. Right now we

                 ; query : list((string,string))

which I would replace with

                ; query : query


  type query = { empty } / { key_value_pairs:list((string,string)) } /
{ plain:string }

More information about the Opa mailing list