Browse Source

add Patch method to preflight

Maurits van der Schee 7 years ago
parent
commit
277cb2b6f9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tests/tests.php

+ 1
- 1
tests/tests.php View File

@@ -429,7 +429,7 @@ class PHP_CRUD_API_Test extends PHPUnit_Framework_TestCase
429 429
 	{
430 430
 		$test = new API($this);
431 431
 		$test->options('/posts/2');
432
-		$test->expect('["Access-Control-Allow-Headers: Content-Type","Access-Control-Allow-Methods: OPTIONS, GET, PUT, POST, DELETE","Access-Control-Allow-Credentials: true","Access-Control-Max-Age: 1728000"]',false);
432
+		$test->expect('["Access-Control-Allow-Headers: Content-Type","Access-Control-Allow-Methods: OPTIONS, GET, PUT, POST, DELETE, PATCH","Access-Control-Allow-Credentials: true","Access-Control-Max-Age: 1728000"]',false);
433 433
 	}
434 434
 
435 435
 	public function testHidingPasswordColumn()

Loading…
Cancel
Save