summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-02-19 20:21:31 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-02-19 20:21:31 -0800
commit061794ec18d2e3286194f6db849d9b3b0bedb7b3 (patch)
tree650eb0450a9540d77aec72d669761bd8be7bdb66 /src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs
parent4ae2b7675f436906c19c91e3d9605eae247d37f1 (diff)
downloadDotNetOpenAuth-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/OAuth/ChannelElements/OAuthChannel.cs')
-rw-r--r--src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs6
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;
}