diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-24 18:52:15 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-24 18:52:15 -0700 |
commit | 982dc39402cdce39be4e1d3bb9e8c3ccf92348ed (patch) | |
tree | 249259841a4fe76974848987c975a5e06fa622be /src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs | |
parent | e0a8bb0217459f537c4d09242e530a7b992b3e00 (diff) | |
download | DotNetOpenAuth-982dc39402cdce39be4e1d3bb9e8c3ccf92348ed.zip DotNetOpenAuth-982dc39402cdce39be4e1d3bb9e8c3ccf92348ed.tar.gz DotNetOpenAuth-982dc39402cdce39be4e1d3bb9e8c3ccf92348ed.tar.bz2 |
Fixes ContentType of OAuth 1 direct responses.
22 test failures remaining.
Diffstat (limited to 'src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs')
-rw-r--r-- | src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs b/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs index b120344..f483ade 100644 --- a/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs +++ b/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs @@ -220,10 +220,9 @@ namespace DotNetOpenAuth.OAuth.ChannelElements { protected override HttpResponseMessage PrepareDirectResponse(IProtocolMessage response) { var messageAccessor = this.MessageDescriptions.GetAccessor(response); var fields = messageAccessor.Serialize(); - string responseBody = MessagingUtilities.CreateQueryString(fields); - HttpResponseMessage encodedResponse = new HttpResponseMessage { - Content = new StringContent(responseBody), + var encodedResponse = new HttpResponseMessage { + Content = new FormUrlEncodedContent(fields), }; ApplyMessageTemplate(response, encodedResponse); |