mirror of
https://github.com/processwire/processwire.git
synced 2025-08-07 15:26:54 +02:00
Add OPTIONS, CONNECT and TRACE to alowed HTTP methods in WireHttp class per processwire/processwire-requests#505
This commit is contained in:
@@ -76,7 +76,17 @@ class WireHttp extends Wire {
|
||||
* HTTP methods we are allowed to use
|
||||
*
|
||||
*/
|
||||
protected $allowHttpMethods = array('GET', 'POST', 'PUT', 'DELETE', 'HEAD', 'PATCH');
|
||||
protected $allowHttpMethods = array(
|
||||
'GET',
|
||||
'POST',
|
||||
'PUT',
|
||||
'DELETE',
|
||||
'HEAD',
|
||||
'PATCH',
|
||||
'OPTIONS',
|
||||
'TRACE',
|
||||
'CONNECT'
|
||||
);
|
||||
|
||||
/**
|
||||
* Headers to include in the request
|
||||
|
Reference in New Issue
Block a user