1
0
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:
Ryan Cramer
2024-02-02 13:55:42 -05:00
parent f02393e538
commit 8c80c524b1

View File

@@ -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