diff --git a/flight/net/Request.php b/flight/net/Request.php index 9cdc64b..02e012f 100644 --- a/flight/net/Request.php +++ b/flight/net/Request.php @@ -213,6 +213,16 @@ class Request } } + // Check PUT, PATCH, DELETE for data + if ($this->method === 'PUT' || $this->method === 'DELETE' || $this->method === 'PATCH') { + $body = $this->getBody(); + if ($body !== '') { + $data = []; + parse_str($body, $data); + $this->data->setData($data); + } + } + return $this; }