diff --git a/fetch.js b/fetch.js index 86fe318a73194936a6b48cd1bcf4be140294239f..73201e3f48ac65f4c970d786b66a52fcba36e630 100644 --- a/fetch.js +++ b/fetch.js @@ -204,7 +204,7 @@ this.mode = options.mode || null this.referrer = null - if ((this.method === 'GET' || this.method == 'HEAD') && options.body) { + if ((this.method === 'GET' || this.method === 'HEAD') && options.body) { throw new TypeError() } this._initBody(options.body)