Skip to content

Commit 03317bc

Browse files
authored
Merge pull request #185 from mkopinsky/allow-patch-requests-in-functional-tests
Allow PATCH as an option in functional tests
2 parents d01d843 + 8e240f0 commit 03317bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/sfBrowserBase.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public function call($uri, $method = 'get', $parameters = array(), $changeStack
272272

273273
// request parameters
274274
$_GET = $_POST = array();
275-
if (in_array(strtoupper($method), array('POST', 'DELETE', 'PUT')))
275+
if (in_array(strtoupper($method), array('POST', 'DELETE', 'PUT', 'PATCH')))
276276
{
277277
if (isset($parameters['_with_csrf']) && $parameters['_with_csrf'])
278278
{

0 commit comments

Comments
 (0)