From a5158134a8d9cda1ca899f4f06ba8ca26c17feeb Mon Sep 17 00:00:00 2001 From: Defaultuser0001 Date: Tue, 3 Dec 2019 17:55:14 +0100 Subject: [PATCH] Fixed use uppercase for http request method Symfony checkes if the request method is uppercase and throws an error if it is not: Invalid HTTP method "get", only uppercase letters are accepted. --- src/Message/RestAbstractRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Message/RestAbstractRequest.php b/src/Message/RestAbstractRequest.php index a4dd77a..aab7d26 100644 --- a/src/Message/RestAbstractRequest.php +++ b/src/Message/RestAbstractRequest.php @@ -153,7 +153,7 @@ protected function getHeaders() protected function sendRequest($method, $endpoint, $data = null) { return $this->httpClient->request( - $method, + strtoupper($method), $this->getEndpoint() . $endpoint, $this->getHeaders(), $data