Skip to content

Commit

Permalink
Fix: PATCH method now can contains request body. (Method HttpRequest.…
Browse files Browse the repository at this point in the history
…CanContainsRequestBody)
  • Loading branch information
grandsilence committed Feb 8, 2019
1 parent 09c657c commit ddbf716
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Leaf.xNet/~Http/HttpRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ddbf716

Please sign in to comment.