Add changelog entry
This commit is contained in:
parent
658217b021
commit
c1c631eaff
1 changed files with 13 additions and 0 deletions
13
changelog.d/1569
Normal file
13
changelog.d/1569
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
synopsis: Encode captures using toEncodedUrlPiece
|
||||||
|
prs: #1569
|
||||||
|
issues: #1511
|
||||||
|
|
||||||
|
description: {
|
||||||
|
The `servant-client` library now makes direct use of `toEncodedUrlPiece` from `ToHttpApiData`
|
||||||
|
to encode captured values when building the request path. It gives user freedom to implement
|
||||||
|
URL-encoding however they need.
|
||||||
|
|
||||||
|
Previous behavior was to use `toUrlPiece` and URL-encode its output using `toEncodedUrlPiece`
|
||||||
|
from the `Text` instance of `ToHttpApiData`. The issue with this approach is that
|
||||||
|
`ToHttpApiData Text` is overly zealous and also encodes characters, such as `*`, which are perfectly valid in a URL.
|
||||||
|
}
|
Loading…
Reference in a new issue