mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Allow overwriting of 'X-Controller' and 'X-Title' HTTP headers in CMS
This commit is contained in:
parent
c70e70b5c4
commit
225776389a
@ -317,8 +317,8 @@ class LeftAndMain extends Controller {
|
|||||||
$title = $this->Title();
|
$title = $this->Title();
|
||||||
|
|
||||||
$response = parent::handleRequest($request, $model);
|
$response = parent::handleRequest($request, $model);
|
||||||
$response->addHeader('X-Controller', $this->class);
|
if(!$response->getHeader('X-Controller')) $response->addHeader('X-Controller', $this->class);
|
||||||
$response->addHeader('X-Title', $title);
|
if(!$response->getHeader('X-Title')) $response->addHeader('X-Title', $title);
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user