summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-03-30 21:50:58 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-03-30 21:50:58 -0700
commita195843e69344d977013421d0ae5de78750b018c (patch)
tree6fc2319185da42386a1fa498ac3f1a6322f04094
parent7564e90eefb61300f211d5d4fd2c3c9cf776ac34 (diff)
downloadDotNetOpenAuth-a195843e69344d977013421d0ae5de78750b018c.zip
DotNetOpenAuth-a195843e69344d977013421d0ae5de78750b018c.tar.gz
DotNetOpenAuth-a195843e69344d977013421d0ae5de78750b018c.tar.bz2
Message parts with constant values are no longer strict about capitalization.
-rw-r--r--src/DotNetOpenAuth/Messaging/Reflection/MessagePart.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/Messaging/Reflection/MessagePart.cs b/src/DotNetOpenAuth/Messaging/Reflection/MessagePart.cs
index 08e2411..e9613ab 100644
--- a/src/DotNetOpenAuth/Messaging/Reflection/MessagePart.cs
+++ b/src/DotNetOpenAuth/Messaging/Reflection/MessagePart.cs
@@ -189,7 +189,7 @@ namespace DotNetOpenAuth.Messaging.Reflection {
try {
if (this.IsConstantValue) {
string constantValue = this.GetValue(message);
- if (!string.Equals(constantValue, value)) {
+ if (!string.Equals(constantValue, value, StringComparison.OrdinalIgnoreCase)) {
throw new ArgumentException(string.Format(
CultureInfo.CurrentCulture,
MessagingStrings.UnexpectedMessagePartValueForConstant,