summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-01-11 22:27:07 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2010-01-11 22:27:45 -0800
commit0dcd9fff4ad4b51941d23cc6791bf9b152cf9805 (patch)
treefb399530302577314dc0f9ed9e19812fc94125be /src
parent3999579271b79a1c4443506028e4df4012f1519d (diff)
downloadDotNetOpenAuth-0dcd9fff4ad4b51941d23cc6791bf9b152cf9805.zip
DotNetOpenAuth-0dcd9fff4ad4b51941d23cc6791bf9b152cf9805.tar.gz
DotNetOpenAuth-0dcd9fff4ad4b51941d23cc6791bf9b152cf9805.tar.bz2
Fixed error checking and reporting of an invalid OAuth configuration.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/OAuth/ChannelElements/SigningBindingElementBase.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/OAuth/ChannelElements/SigningBindingElementBase.cs b/src/DotNetOpenAuth/OAuth/ChannelElements/SigningBindingElementBase.cs
index 634fd07..b45da66 100644
--- a/src/DotNetOpenAuth/OAuth/ChannelElements/SigningBindingElementBase.cs
+++ b/src/DotNetOpenAuth/OAuth/ChannelElements/SigningBindingElementBase.cs
@@ -165,7 +165,7 @@ namespace DotNetOpenAuth.OAuth.ChannelElements {
var binaryMessage = message as IMessageWithBinaryData;
if (binaryMessage != null && binaryMessage.SendAsMultipart) {
HttpDeliveryMethods authHeaderInUseFlags = HttpDeliveryMethods.PostRequest | HttpDeliveryMethods.AuthorizationHeaderRequest;
- ErrorUtilities.VerifyInternal((binaryMessage.HttpMethods & authHeaderInUseFlags) == authHeaderInUseFlags, "We should only be sending multipart messages with an authorization header so the critical message parts can be signed.");
+ ErrorUtilities.VerifyProtocol((binaryMessage.HttpMethods & authHeaderInUseFlags) == authHeaderInUseFlags, OAuthStrings.MultipartPostMustBeUsedWithAuthHeader);
// Include the declared keys in the signature as those will be signable.
// Cache in local variable to avoid recalculating DeclaredKeys in the delegate.