From 8c80c524b12c456e2cead43e8f2c105e4d7cd763 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 2 Feb 2024 13:55:42 -0500 Subject: [PATCH] Add OPTIONS, CONNECT and TRACE to alowed HTTP methods in WireHttp class per processwire/processwire-requests#505 --- wire/core/WireHttp.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/wire/core/WireHttp.php b/wire/core/WireHttp.php index ccada168..e9648810 100644 --- a/wire/core/WireHttp.php +++ b/wire/core/WireHttp.php @@ -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