Skip to content

Commit

Permalink
Change Response's statusText's default
Browse files Browse the repository at this point in the history
The empty string is a better default as the field is optional in HTTP and rather meaningless. This way if you change the status and forget about statusText it won't give the mistaken impression things are OK.

Tests: ...

Fixes #698.
  • Loading branch information
annevk committed Nov 20, 2018
1 parent 986618a commit 11ae50b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch.bs
Expand Up @@ -5922,7 +5922,7 @@ Response includes Body;

dictionary ResponseInit {
unsigned short status = 200;
ByteString statusText = "OK";
ByteString statusText = "";
HeadersInit headers;
};

Expand Down

0 comments on commit 11ae50b

Please sign in to comment.