eval/rack-pjax — pull request #10 by koszta (2012-02-27 02:38:50+00:00)
Title: Fixed urls on redirects

If the server redirects to another url, we can't check it by xhr request,
but in pjax_rails, they solved this problem by adding X-AJAX-URL to the response headers.

See:
https://github.com/rails/pjax_rails/blob/master/vendor/assets/javascripts/jquery.pjax.js#L200
https://github.com/rails/pjax_rails/blob/master/lib/pjax.rb#L31