Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checks for XHR redirects #101

Merged
merged 2 commits into from
Jan 10, 2018
Merged

Conversation

BehindTheMath
Copy link
Collaborator

@BehindTheMath BehindTheMath commented Jan 10, 2018

Fixes #7

This checks for redirects by looking for the following, in sequence:

  • XMLHttpRequest.responseURL
  • the X-PJAX-URL header (like jquery-pjax)
  • the X-XHR-Redirected-To header (like Turbolinks)

Fixes #7

This checks for redirects by looking for the following, in sequence:
- XMLHttpRequest.responseURL
- the X-PJAX-URL header (like jquery-pjax)
- the X-XHR-Redirected-To header (like Turbolinks)
@BehindTheMath BehindTheMath requested a review from MoOx January 10, 2018 05:15
@BehindTheMath BehindTheMath merged commit 6fa51e5 into master Jan 10, 2018
@BehindTheMath BehindTheMath deleted the feature/detect-redirects branch January 10, 2018 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants