Permalink
Browse files

renamed alwaysAllowHeaders to simpleRequestHeaders.

  • Loading branch information...
1 parent 3461acd commit d9b6c4f58bdc72283f7b288c2a57451b36dff530 @toolness committed Dec 18, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 ppx.js
View
@@ -187,7 +187,7 @@ var PPX = (function() {
return self;
}
- var alwaysAllowHeaders = [
+ var simpleRequestHeaders = [
"Accept",
"Content-Type"
];
@@ -200,7 +200,7 @@ var PPX = (function() {
isSameOrigin: isSameOrigin,
absolutifyURL: absolutifyURL
},
- alwaysAllowHeaders: alwaysAllowHeaders,
+ simpleRequestHeaders: simpleRequestHeaders,
startServer: function startServer(settings) {
settings = settings || {};
@@ -238,7 +238,7 @@ var PPX = (function() {
};
for (var name in data.headers)
- if (inArray(name, alwaysAllowHeaders) == -1) {
+ if (inArray(name, simpleRequestHeaders) == -1) {
if (name == 'X-Requested-With') {
/* Just ignore jQuery's X-Requested-With header. */
} else {

0 comments on commit d9b6c4f

Please sign in to comment.