Fix docs not coming up for HEAD requests.

This commit is contained in:
Mateusz Uzdowski 2017-07-07 10:29:48 +12:00
parent f61751b19e
commit e90ee42f05

View File

@ -171,7 +171,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);
}