yiisoft/yii2 — pull request #2806 by tof06 (2014-03-19 10:21:25+00:00)
Title: Pjax redirect fix

I made a mistake in #2531.
In case of a redirect in a pjax response, we need to send X-Pjax-Url header (to push this url into browser state), but we also need the X-Redirect (since pjax is actually a ajax request) to redirect browser.