Skip to content

Commit b23eae9

Browse files
committed
Fix HTTP OPTIONS requests
Simply map OPTIONS to GET requests, just as nginx and apache do. Resolves: #979
1 parent 038f50b commit b23eae9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Router.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class Router implements HttpKernelInterface {
6363
'POST' => 'add',
6464
'DELETE' => 'delete',
6565
'GET' => 'get',
66+
'OPTIONS' => 'get',
6667
'PATCH' => 'edit',
6768
'PULL' => 'edit' // not REST-conform
6869
);

0 commit comments

Comments
 (0)