Added PUT, PATCH, DELETE methods for data

pull/620/head
KnifeLemon 3 weeks ago committed by GitHub
parent da6540bbdd
commit 1b57f9eb2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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; return $this;
} }

Loading…
Cancel
Save