Merge pull request #135 from mateusz/fix-head

Fix docs not coming up for HEAD requests.
This commit is contained in:
Robbie Averill 2017-07-07 10:33:06 +12:00 committed by GitHub
commit 9521e6ab9d

View File

@ -177,7 +177,7 @@ class DocumentationViewer extends Controller implements PermissionProvider
public function handleAction($request, $action)
{
// if we submitted a form, let that pass
if (!$request->isGET()) {
if (!$request->isGET() && !$request->isHEAD()) {
return parent::handleAction($request, $action);
}