Skip to content

Commit

Permalink
fix(http-core): alter xhr source to avoid writing to objects that may be
Browse files Browse the repository at this point in the history
frozen in some environments

This is an application of naugtur/xhr#150 which
is blocked until xhr@3.0.0 is released
  • Loading branch information
Ian W. Remmel committed Feb 8, 2017
1 parent 8a7d60d commit 7cbb541
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/http-core/src/lib/xhr.js
Expand Up @@ -150,10 +150,10 @@ function _createXHR(options) {

var key
var aborted
var uri = xhr.url = options.uri || options.url
var method = xhr.method = options.method || "GET"
var uri = options.uri || options.url
var method = options.method || "GET"
var body = options.body || options.data
var headers = xhr.headers = options.headers || {}
var headers = options.headers || {}
var sync = !!options.sync
var isJson = false
var timeoutTimer
Expand Down

0 comments on commit 7cbb541

Please sign in to comment.