diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-29 11:04:58 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-29 11:04:58 -0700 |
commit | 0a3e7432b58f52072159356576a905c2217c55a0 (patch) | |
tree | f325bc3a78f8cb79fdab97c1da8b581057ae60d7 | |
parent | ad3b5cae2f5acd9b035b5528b15583c081aa73b8 (diff) | |
download | DotNetOpenAuth-0a3e7432b58f52072159356576a905c2217c55a0.zip DotNetOpenAuth-0a3e7432b58f52072159356576a905c2217c55a0.tar.gz DotNetOpenAuth-0a3e7432b58f52072159356576a905c2217c55a0.tar.bz2 |
Fixed OAuth authorization header handler to use POST requests where necessary.
-rw-r--r-- | src/DotNetOpenAuth/OAuth/ChannelElements/OAuthChannel.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/OAuth/ChannelElements/OAuthChannel.cs b/src/DotNetOpenAuth/OAuth/ChannelElements/OAuthChannel.cs index b18b809..a52a4f5 100644 --- a/src/DotNetOpenAuth/OAuth/ChannelElements/OAuthChannel.cs +++ b/src/DotNetOpenAuth/OAuth/ChannelElements/OAuthChannel.cs @@ -285,6 +285,10 @@ namespace DotNetOpenAuth.OAuth.ChannelElements { httpRequest.Headers.Add(HttpRequestHeader.Authorization, authorization.ToString()); + if ((requestMessage.HttpMethods & HttpDeliveryMethods.PostRequest) != 0) { + httpRequest.Method = "POST"; + } + return httpRequest; } |