Skip to content

Commit 22c28a2

Browse files
lu4darrachequesne
authored andcommitted
[fix] Fix extraHeaders option in browser (#536)
1 parent f756bd6 commit 22c28a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/transports/polling-xhr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Request.prototype.create = function () {
197197
xhr.open(this.method, this.uri, this.async);
198198
try {
199199
if (this.extraHeaders) {
200-
xhr.setDisableHeaderCheck(true);
200+
xhr.setDisableHeaderCheck && xhr.setDisableHeaderCheck(true);
201201
for (var i in this.extraHeaders) {
202202
if (this.extraHeaders.hasOwnProperty(i)) {
203203
xhr.setRequestHeader(i, this.extraHeaders[i]);

0 commit comments

Comments
 (0)