summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs
diff options
context:
space:
mode:
authorMatt Hawley <matt@eworldui.net>2012-08-10 15:00:55 -0700
committerMatt Hawley <matt@eworldui.net>2012-08-10 15:04:35 -0700
commit4f5db260de8f8bad2cbae970cd79f11611520007 (patch)
treeab97d36ae27da559f3cbef5d121dbc92adbdd050 /src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs
parenta759ad7ac6d3c15a680b9b7180a35a8375faa8ce (diff)
downloadDotNetOpenAuth-4f5db260de8f8bad2cbae970cd79f11611520007.zip
DotNetOpenAuth-4f5db260de8f8bad2cbae970cd79f11611520007.tar.gz
DotNetOpenAuth-4f5db260de8f8bad2cbae970cd79f11611520007.tar.bz2
Fixing one more place it was missed, also changing to OPTIONS
Diffstat (limited to 'src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs')
-rw-r--r--src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs b/src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs
index e213f01..2d049c1 100644
--- a/src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs
+++ b/src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs
@@ -1445,8 +1445,8 @@ namespace DotNetOpenAuth.Messaging {
return HttpDeliveryMethods.HeadRequest;
} else if (httpVerb == "PATCH") {
return HttpDeliveryMethods.PatchRequest;
- } else if (httpVerb == "OPTION") {
- return HttpDeliveryMethods.OptionRequest;
+ } else if (httpVerb == "OPTIONS") {
+ return HttpDeliveryMethods.OptionsRequest;
} else {
throw ErrorUtilities.ThrowArgumentNamed("httpVerb", MessagingStrings.UnsupportedHttpVerb, httpVerb);
}
@@ -1470,8 +1470,8 @@ namespace DotNetOpenAuth.Messaging {
return "HEAD";
} else if ((httpMethod & HttpDeliveryMethods.HttpVerbMask) == HttpDeliveryMethods.PatchRequest) {
return "PATCH";
- } else if ((httpMethod & HttpDeliveryMethods.HttpVerbMask) == HttpDeliveryMethods.OptionRequest) {
- return "OPTION";
+ } else if ((httpMethod & HttpDeliveryMethods.HttpVerbMask) == HttpDeliveryMethods.OptionsRequest) {
+ return "OPTIONS";
} else if ((httpMethod & HttpDeliveryMethods.AuthorizationHeaderRequest) != 0) {
return "GET"; // if AuthorizationHeaderRequest is specified without an explicit HTTP verb, assume GET.
} else {