Skip to content
This repository was archived by the owner on Mar 20, 2019. It is now read-only.

Copies missing headers (namely Content-Type) over to HttpResponse to fix "application/json" being sent out as "text/html".#306

Open
dstj wants to merge 1 commit intoDotNetOpenAuth:masterfrom
dstj:master
Open

Copies missing headers (namely Content-Type) over to HttpResponse to fix "application/json" being sent out as "text/html".#306
dstj wants to merge 1 commit intoDotNetOpenAuth:masterfrom
dstj:master

Conversation

@dstj
Copy link
Copy Markdown

@dstj dstj commented Sep 20, 2013

The response from the auth provider for the token was received as 'text/html' instead on 'application/json' on the client. The result was that the following exception is thrown by the client: "Unexpected response Content-Type text/html".

The cause is that the message's 'Content-Type' header is never copied over from the response message to the HttpResponse being sent out.

…fix "application/json" being sent out as "text/html".
@panterlo panterlo mentioned this pull request Oct 7, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant