http-client 0.4.11.2 → 0.4.11.3
raw patch · 3 files changed
+9/−2 lines, 3 files
Files
- ChangeLog.md +4/−0
- Network/HTTP/Client/Request.hs +4/−1
- http-client.cabal +1/−1
ChangeLog.md view
@@ -1,3 +1,7 @@+## 0.4.11.3++* Fix getUri to insert "?" to uriQuery when necessary. [#123](https://github.com/snoyberg/http-client/pull/123)+ ## 0.4.11.2 * Removed publicsuffixlist dependency, see [Github discussion](https://github.com/litherum/publicsuffixlist/pull/7)
Network/HTTP/Client/Request.hs view
@@ -107,7 +107,10 @@ , uriPort = ':' : show (port req) } , uriPath = S8.unpack $ path req- , uriQuery = S8.unpack $ queryString req+ , uriQuery =+ case S8.uncons $ queryString req of+ Just (c, _) | c /= '?' -> '?' : (S8.unpack $ queryString req)+ _ -> S8.unpack $ queryString req , uriFragment = "" }
http-client.cabal view
@@ -1,5 +1,5 @@ name: http-client-version: 0.4.11.2+version: 0.4.11.3 synopsis: An HTTP client engine, intended as a base layer for more user-friendly packages. description: Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/http-client>. homepage: https://github.com/snoyberg/http-client