-
Notifications
You must be signed in to change notification settings - Fork 86
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 X-Requested-With header; bug fix #84
Conversation
…f retry after the bug fix to keep backward compatibility
CLA is valid! |
@@ -18,7 +18,7 @@ var _ = require('lodash'), | |||
timeout: 3000, | |||
retry: { | |||
interval: 200, | |||
max_retries: 2 | |||
max_retries: 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turning retry off to keep backward compatible behavior of no automatic retry, which was due to a bug that is fixed in this commit.
👍 |
var normalized = {}; | ||
var normalized = { | ||
'X-Requested-With': 'XMLHttpRequest' | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
X-Requested-With
is a common header used for identify Ajax requests: http://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Common_non-standard_request_fields
|
add X-Requested-With header; bug fix
@Vijar