Skip to content

Commit 436406d

Browse files
committed
Semantics
1 parent db4c81a commit 436406d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Response.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import Body from "./Body";
22
import Headers from "./Headers";
33

44
class Response {
5-
constructor(bodyInit, options = {}) {
5+
constructor(body, options = {}) {
66
this.type = "basic";
77
this.status = options.status ?? 200;
88
this.ok = this.status >= 200 && this.status < 300;
99
this.statusText = options.statusText ?? "";
1010
this.headers = new Headers(options.headers);
1111
this.url = options.url ?? "";
12-
this._body = new Body(bodyInit);
12+
this._body = new Body(body);
1313

1414
if (!this.headers.has("content-type") && this._body._mimeType) {
1515
this.headers.set("content-type", this._body._mimeType);

0 commit comments

Comments
 (0)