snoyberg / http-enumerator

HTTP client package with enumerator interface and HTTPS support.
27 stars 9 forks source link

(parseUrlHelper False) escapes query string delimiter '?' #23

Closed patrick-premont closed 12 years ago

patrick-premont commented 13 years ago

version 0.6.5.1

In ghci: Prelude Network.HTTP.Enumerator> simpleHttp "http://192.168.5.32:8001/a?a"

produces this in my server log: 192.168.5.32 - - [07/Jun/2011:09:18:52 -0400] "GET /a%3Fa HTTP/1.1" 200 - - "-"

snoyberg commented 13 years ago

Good catch, seems that parseUrlHelper False doesn't really make any sense. I've reverted simpleHttp to use parseUrl. Can you confirm this fixes the issue?

patrick-premont commented 13 years ago

Yes 0.6.5.2 fixes the issue. Thanks!

In ghci: Prelude Network.HTTP.Enumerator> simpleHttp "http://192.168.5.32:8001/a?a"

now correctly produces this in my server log: 192.168.5.32 - - [09/Jun/2011:11:09:16 -0400] "GET /a?a HTTP/1.1" 200 - - "-"