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 X-Requested-With header to Ajax request #51

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions hinclude.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ var hinclude;
};
try {
req.open("GET", url, true);
req.setRequestHeader("X-Requested-With", "XMLHttpRequest");
req.send("");
} catch (e3) {
this.outstanding -= 1;
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"dependencies" : {
"copyfiles": "^0.2.1",
"jslint" : "*",
"simplehttpserver": "0.0.6"
"simplehttpserver": "0.0.6",
"phantomjs": "2.1.1"
},
"engines": {
"node": ">= 0.6.0"
Expand Down
3 changes: 1 addition & 2 deletions test/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@

Tests
=====

Requirements
------------

* nodejs
* [phantomjs](http://phantomjs.org) (at least 1.8.* version)
* [phantomjs](http://phantomjs.org) (at least 2.1.* version)
* Python

After this we can set up the project
Expand Down