diff --git a/fetch.js b/fetch.js index f4755bd9..f2f466d7 100644 --- a/fetch.js +++ b/fetch.js @@ -380,7 +380,7 @@ } this.type = 'default' - this.status = 'status' in options ? options.status : 200 + this.status = options.status === undefined ? 200 : options.status this.ok = this.status >= 200 && this.status < 300 this.statusText = 'statusText' in options ? options.statusText : 'OK' this.headers = new Headers(options.headers)