avsm/ocaml-uri — pull request #9 by mjambon (2012-04-24 23:34:10+00:00)
Title: Query parsing and decoding order

Hi Anil,

I changed the order of parsing and decoding of the query component, such that "a=b%26c%3Dd" gets parsed correctly as [("a", "b&c=d")] rather than [("a","b"); ("c","d")]:

```ocaml
# Uri.query (Uri.of_string "http://example.com/?a=b%26c%3Dd");;
- : (string * string) list = [("a", "b&c=d")]
```

I removed Uri.query_of_decoded from the interface because it doesn't seem to make sense; I don't know whether it breaks existing code. I tested Cohttpd for POST requests with a body of the form `key=`.