diff --git a/components/esp_http_client/esp_http_client.c b/components/esp_http_client/esp_http_client.c index cfce5043541..651c7e2d519 100644 --- a/components/esp_http_client/esp_http_client.c +++ b/components/esp_http_client/esp_http_client.c @@ -184,7 +184,8 @@ static const char *HTTP_METHOD_MAPPING[] = { "UNLOCK", "PROPFIND", "PROPPATCH", - "MKCOL" + "MKCOL", + "REPORT" }; static esp_err_t esp_http_client_request_send(esp_http_client_handle_t client, int write_len); diff --git a/components/esp_http_client/include/esp_http_client.h b/components/esp_http_client/include/esp_http_client.h index bb9319e42d1..d35a361900e 100644 --- a/components/esp_http_client/include/esp_http_client.h +++ b/components/esp_http_client/include/esp_http_client.h @@ -116,6 +116,7 @@ typedef enum { HTTP_METHOD_PROPFIND, /*!< HTTP PROPFIND Method */ HTTP_METHOD_PROPPATCH, /*!< HTTP PROPPATCH Method */ HTTP_METHOD_MKCOL, /*!< HTTP MKCOL Method */ + HTTP_METHOD_REPORT, /*!< HTTP REPORT Method */ HTTP_METHOD_MAX, } esp_http_client_method_t;