Skip to content

Commit

Permalink
Merge pull request #2 from mrgrain/fix-pjax-response
Browse files Browse the repository at this point in the history
Include X-PJAX-CONTAINER element in the response
  • Loading branch information
JacobBennett committed Jun 25, 2015
2 parents 8e088ba + b52440a commit 775bd61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JacobBennett/Pjax/PjaxMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function handle($request, Closure $next)
}

// Set new content for the response
$response->setContent($title . $response_container->html());
$response->setContent($title . $response_container->getNode(0)->ownerDocument->saveHTML($response_container->getNode(0)));
}

// Updating address bar with the last URL in case there were redirects
Expand Down

0 comments on commit 775bd61

Please sign in to comment.