diff options
author | Matt Hawley <matt@eworldui.net> | 2012-08-10 15:00:55 -0700 |
---|---|---|
committer | Matt Hawley <matt@eworldui.net> | 2012-08-10 15:04:35 -0700 |
commit | 4f5db260de8f8bad2cbae970cd79f11611520007 (patch) | |
tree | ab97d36ae27da559f3cbef5d121dbc92adbdd050 /src/DotNetOpenAuth.Core/Messaging/Channel.cs | |
parent | a759ad7ac6d3c15a680b9b7180a35a8375faa8ce (diff) | |
download | DotNetOpenAuth-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/Channel.cs')
-rw-r--r-- | src/DotNetOpenAuth.Core/Messaging/Channel.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/Channel.cs b/src/DotNetOpenAuth.Core/Messaging/Channel.cs index 672a942..f8ac6a1 100644 --- a/src/DotNetOpenAuth.Core/Messaging/Channel.cs +++ b/src/DotNetOpenAuth.Core/Messaging/Channel.cs @@ -650,10 +650,12 @@ namespace DotNetOpenAuth.Messaging { protected static bool HttpMethodHasEntity(string httpMethod) { if (string.Equals(httpMethod, "GET", StringComparison.Ordinal) || string.Equals(httpMethod, "HEAD", StringComparison.Ordinal) || - string.Equals(httpMethod, "DELETE", StringComparison.Ordinal)) { + string.Equals(httpMethod, "DELETE", StringComparison.Ordinal) || + string.Equals(httpMethod, "OPTIONS", StringComparison.Ordinal)) { return false; } else if (string.Equals(httpMethod, "POST", StringComparison.Ordinal) || - string.Equals(httpMethod, "PUT", StringComparison.Ordinal)) { + string.Equals(httpMethod, "PUT", StringComparison.Ordinal) || + string.Equals(httpMethod, "PATCH", StringComparison.Ordinal)) { return true; } else { throw ErrorUtilities.ThrowArgumentNamed("httpMethod", MessagingStrings.UnsupportedHttpVerb, httpMethod); |