From d1b3a930b9d5160a0599d468b4d143e9ae608563 Mon Sep 17 00:00:00 2001 From: dma Date: Tue, 23 May 2023 18:03:43 +0300 Subject: [PATCH] feat: add method PUT to build postFields for request --- src/Context/ApiContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Context/ApiContext.php b/src/Context/ApiContext.php index 164a451..02a77e9 100644 --- a/src/Context/ApiContext.php +++ b/src/Context/ApiContext.php @@ -134,7 +134,7 @@ public function iSendRequestToRoute( if (Request::METHOD_GET === $method) { $queryString = http_build_query($this->requestParams); - } elseif (Request::METHOD_POST === $method || Request::METHOD_PATCH === $method) { + } elseif (Request::METHOD_POST === $method || Request::METHOD_PATCH === $method || Request::METHOD_PUT === $method) { $postFields = $this->requestParams; }