From a7abb459c91156e0326018bbd7274c9a425e1087 Mon Sep 17 00:00:00 2001 From: mhilbrunner Date: Sun, 10 Dec 2017 23:18:44 +0100 Subject: HTTPClient: Add PATCH method and missing HTTP status codes --- core/io/http_client.cpp | 19 +++++++++++++++++-- core/io/http_client.h | 15 +++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/io/http_client.cpp b/core/io/http_client.cpp index 5097898314..9d89baafb1 100644 --- a/core/io/http_client.cpp +++ b/core/io/http_client.cpp @@ -93,7 +93,8 @@ Error HTTPClient::request_raw(Method p_method, const String &p_url, const Vector "DELETE", "OPTIONS", "TRACE", - "CONNECT" + "CONNECT", + "PATCH" }; String request = String(_methods[p_method]) + " " + p_url + " HTTP/1.1\r\n"; @@ -153,7 +154,8 @@ Error HTTPClient::request(Method p_method, const String &p_url, const Vector