Skip to content

Commit

Permalink
Keep algolia custom headers for queries (does not remove the OPTIONS …
Browse files Browse the repository at this point in the history
…cors call)
  • Loading branch information
speedblue committed Oct 29, 2014
1 parent 9553127 commit f97236b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/algoliasearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,7 @@ AlgoliaSearch.prototype = {
method: 'POST',
url: '/1/indexes/*/queries',
body: params,
callback: callback,
removeCustomHTTPHeaders: true});
callback: callback});
}
},
/*
Expand Down Expand Up @@ -1334,8 +1333,7 @@ AlgoliaSearch.prototype.Index.prototype = {
method: 'POST',
url: '/1/indexes/' + encodeURIComponent(this.indexName) + '/query',
body: pObj,
callback: callback,
removeCustomHTTPHeaders: true});
callback: callback});
}
},

Expand Down

0 comments on commit f97236b

Please sign in to comment.