Browse files

BUGFIX: Prevent 500 error when a HEAD request is sent to its action URL.

  • Loading branch information...
1 parent e443ec5 commit 067204d003291f02633a01c2e7620c41dd38e906 @sminnee sminnee committed Mar 19, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 forms/Form.php
View
1 forms/Form.php
@@ -192,6 +192,7 @@ public function __construct($controller, $name, FieldList $fields, FieldList $ac
'$Action!' => 'handleAction',
'POST ' => 'httpSubmission',
'GET ' => 'httpSubmission',
+ 'HEAD ' => 'httpSubmission',
);
/**

0 comments on commit 067204d

Please sign in to comment.