From ddbf7169c20aa8f119afc9575f6072ac2376ac9a Mon Sep 17 00:00:00 2001 From: Grand Silence Date: Sat, 9 Feb 2019 01:17:03 +0300 Subject: [PATCH] Fix: PATCH method now can contains request body. (Method HttpRequest.CanContainsRequestBody) --- Leaf.xNet/~Http/HttpRequest.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Leaf.xNet/~Http/HttpRequest.cs b/Leaf.xNet/~Http/HttpRequest.cs index be24734..f76b4d6 100644 --- a/Leaf.xNet/~Http/HttpRequest.cs +++ b/Leaf.xNet/~Http/HttpRequest.cs @@ -1829,8 +1829,9 @@ private void CheckStatusCode(HttpStatusCode statusCode) private static bool CanContainsRequestBody(HttpMethod method) { return - method == HttpMethod.PUT || method == HttpMethod.POST || + method == HttpMethod.PUT || + method == HttpMethod.PATCH || method == HttpMethod.DELETE; }