Skip to content

Commit

Permalink
[fix] Fix extraHeaders option in browser (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
lu4 authored and darrachequesne committed Feb 1, 2017
1 parent f756bd6 commit 22c28a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transports/polling-xhr.js
Expand Up @@ -197,7 +197,7 @@ Request.prototype.create = function () {
xhr.open(this.method, this.uri, this.async);
try {
if (this.extraHeaders) {
xhr.setDisableHeaderCheck(true);
xhr.setDisableHeaderCheck && xhr.setDisableHeaderCheck(true);
for (var i in this.extraHeaders) {
if (this.extraHeaders.hasOwnProperty(i)) {
xhr.setRequestHeader(i, this.extraHeaders[i]);
Expand Down

0 comments on commit 22c28a2

Please sign in to comment.