Skip to content

Commit

Permalink
UI\Presenter: sends HTTP header Vary: X-Requested-With [Closes nette/…
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 19, 2013
1 parent dbb9e61 commit e83b58f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Application/UI/Presenter.php
Expand Up @@ -163,6 +163,10 @@ public function run(Application\Request $request)
$this->payload = new \stdClass;
$this->setParent($this->getParent(), $request->getPresenterName());

if (!$this->getHttpResponse()->isSent()) {
$this->getHttpResponse()->addHeader('Vary', 'X-Requested-With');
}

$this->initGlobalParameters();
$this->checkRequirements($this->getReflection());
$this->startup();
Expand Down

0 comments on commit e83b58f

Please sign in to comment.