-
-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in decodedAs
?
#1097
Comments
the server types are the left argument, aren'т тhey? |
Hello again @phadej :D Uh, well, the roles are reversed here I think. |
hmm. For Maybe we don't, but OTOH, i'd rather require you to write own header('Content-Type: text/html; charset=utf-8'); is like the first thing people do in their PHP scripts, so browsers don't need to guess... |
I don't control the endpoint, I am writing a client, not a server :) And no, we don't:
|
I don't think that anything bad would happen if we add plain `text/html` to the lists (as the second one). Check how JSON case is done. I'd like a PR to both -blaze and -lucid packages, Thanks!
…Sent from my iPhone
On 15 Dec 2018, at 20.17, Edsko de Vries ***@***.***> wrote:
I don't control the endpoint, I am writing a client, not a server :)
And no, we don't:
*QuerySFZD.API.Ours Network.HTTP.Media Data.Foldable> toList $ contentTypes (Proxy @html)
[text/html;charset=utf-8]
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
See haskell-servant/servant#1097 for details.
See haskell-servant/servant#1097 for details.
Thanks, these will probably fail with old |
However, needs patch to servant-client. See haskell-servant/servant#1097 .
See haskell-servant/servant#1097 for details.
See haskell-servant/servant#1097 for details.
See haskell-servant/servant#1097 for details.
new versions of |
In
Servant.Client.Core.Internal.RunClient
, we findI think the line
is wrong. The documentation for
matches
readsHere however the client type is given on the left instead.
The result is that for a client that accepts a HTML response (
accept
will be[text/html;charset=utf-8]
) but a server that returns a content-type oftext/html
, the response is rejected asUnsupportedContentType
.The text was updated successfully, but these errors were encountered: