diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-02-19 20:21:31 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-02-19 20:21:31 -0800 |
commit | 061794ec18d2e3286194f6db849d9b3b0bedb7b3 (patch) | |
tree | 650eb0450a9540d77aec72d669761bd8be7bdb66 /src/DotNetOpenAuth.OAuth | |
parent | 4ae2b7675f436906c19c91e3d9605eae247d37f1 (diff) | |
download | DotNetOpenAuth-061794ec18d2e3286194f6db849d9b3b0bedb7b3.zip DotNetOpenAuth-061794ec18d2e3286194f6db849d9b3b0bedb7b3.tar.gz DotNetOpenAuth-061794ec18d2e3286194f6db849d9b3b0bedb7b3.tar.bz2 |
Fixed up the various protocol channels to correctly apply HTTP headers prescribed by the messages.
Diffstat (limited to 'src/DotNetOpenAuth.OAuth')
-rw-r--r-- | src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs b/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs index 293bf5a..2cbc16b 100644 --- a/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs +++ b/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs @@ -223,11 +223,7 @@ namespace DotNetOpenAuth.OAuth.ChannelElements { Headers = new System.Net.WebHeaderCollection(), }; - IHttpDirectResponse httpMessage = response as IHttpDirectResponse; - if (httpMessage != null) { - encodedResponse.Status = httpMessage.HttpStatusCode; - } - + this.ApplyMessageTemplate(response, encodedResponse); return encodedResponse; } |