servant/servant-client/test/Servant
Gaël Deest 658217b021 Use toEncodedUrlPiece directly when encoding captures
Current implementation of captures uses the `toUrlPiece` method from the
`ToHttpApiData` typeclass, and encodes the resulting `Text` using `toEncodedUrlPiece`
when appending to the request path.

The problem with this approach is that the instance for `Text` percent-encodes
characters that are perfectly valid in URLs, such as `*`.

This patch makes direct use of `toEncodedUrlPiece`, which lets users implement
encoding according to their needs.

Closes #1511
2022-03-21 17:29:23 +01:00
..
BasicAuthSpec.hs ClientSpec split into multiple modules 2019-03-31 13:21:17 +01:00
BrokenSpec.hs Derive HasClient good response status from Verb status (#1469) 2021-12-09 10:09:18 +01:00
ClientTestUtils.hs Use toEncodedUrlPiece directly when encoding captures 2022-03-21 17:29:23 +01:00
ConnectionErrorSpec.hs ClientSpec split into multiple modules 2019-03-31 13:21:17 +01:00
FailSpec.hs Derive HasClient good response status from Verb status (#1469) 2021-12-09 10:09:18 +01:00
GenAuthSpec.hs ClientSpec split into multiple modules 2019-03-31 13:21:17 +01:00
GenericSpec.hs Add parameter-supplying operator 2021-11-18 10:11:45 +01:00
HoistClientSpec.hs ClientSpec split into multiple modules 2019-03-31 13:21:17 +01:00
StreamSpec.hs ClientSpec split into multiple modules 2019-03-31 13:21:17 +01:00
SuccessSpec.hs Use toEncodedUrlPiece directly when encoding captures 2022-03-21 17:29:23 +01:00
WrappedApiSpec.hs ClientSpec split into multiple modules 2019-03-31 13:21:17 +01:00