Skip to content

Fetch: change Response's statusText's default#14144

Merged
Ms2ger merged 1 commit intomasterfrom
annevk/response-statustext-default
Nov 20, 2018
Merged

Fetch: change Response's statusText's default#14144
Ms2ger merged 1 commit intomasterfrom
annevk/response-statustext-default

Conversation

@annevk
Copy link
Copy Markdown
Member

@annevk annevk commented Nov 20, 2018

See whatwg/fetch#836 for context.

This also cleans up the code a bit.

See whatwg/fetch#836 for context.

This also cleans up the code a bit.
@Ms2ger Ms2ger merged commit 99e9e99 into master Nov 20, 2018
@Ms2ger Ms2ger deleted the annevk/response-statustext-default branch November 20, 2018 16:43
@annevk annevk restored the annevk/response-statustext-default branch November 21, 2018 09:01
@annevk
Copy link
Copy Markdown
Member Author

annevk commented Nov 21, 2018

@jdm thanks for the review!

@Ms2ger I should have added a label, but maybe I can also ask to not merge my PRs as a general rule? I usually try to time them together with a change to the standard, which often awaits some kind of implementer feedback.

@annevk annevk deleted the annevk/response-statustext-default branch November 21, 2018 11:20
annevk added a commit to whatwg/fetch that referenced this pull request Nov 21, 2018
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: web-platform-tests/wpt#14144.

Fixes #698.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants