[Haskell-cafe] Strange encoding issue with Text and Servant
Jan von Löwenstein
jan.loewenstein at gmail.com
Sat Jan 14 17:37:22 UTC 2017
Oh, it happens with servant on the client side.
I use a swagger-codegen generated servant based client to access kubernetes.
>From what I see the `QueryParam "labelSelector" Text` is the same in both.
Logging the value gives the literal `=` as expected. Logging the (http-client)
requests shows the difference.
Nigel Rantor <wiggly at wiggly.org> schrieb am Sa., 14. Jan. 2017 um 18:11 Uhr:
> On 13/01/17 19:28, Jan von Löwenstein wrote:
> > Hi,
> > I have got a two places with a `QueryParam "q" Text` and call it with a
> > Text that contains a `=` literal. In one place the `=` is correctly
> > encoded as %3D, in the other I see a `!D(MISSING)`.
> > This has to happen somewhere in Servant or the lower layers. Both Texts
> > print out nicely with an `=` sign if I just print them to stdout.
> > Google does not find `!D(MISSING)` anywhere.
> > Any idea what could possibly be the problem here?
> It would be really useful to see exactly how you are 'calling' this.
> Do you have a curl command line or are you using some other client?
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe