Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change combine and combined value to use 0x2C 0x20
 #504

Merged
merged 1 commit into from
Mar 10, 2017
Merged

Conversation

annevk
Copy link
Member

@annevk annevk commented Mar 10, 2017

Instead of just 0x2C, use 0x2C 0x20 somewhat consistently (except where we can't and point it out) as that is what XMLHttpRequest implementations have always done and nobody likes too much change.

Fixes the Fetch part of whatwg/xhr#108 and whatwg/xhr#109.


Preview | Diff

annevk added a commit to whatwg/xhr that referenced this pull request Mar 10, 2017
In particular, setRequestHeader() should use 0x2C 0x20 as separator (not just 0x2C) and get(All)ResponseHeader(s)() should do so too. The latter also always needs to end in 0x0D 0x0A rather than omitting it at the end.

This depends on whatwg/fetch#504 landing first.

Tests: web-platform-tests/wpt#4641 and web-platform-tests/wpt#5008.

Fixes #108 and fixes #109.
Instead of just 0x2C, use 0x2C 0x20 somewhat consistently (except where we can't and point it out) as that is what XMLHttpRequest implementations have always done and nobody likes too much change.

Fixes the Fetch part of whatwg/xhr#108 and whatwg/xhr#109.
@annevk annevk changed the title Change combine to be compatible with XMLHttpRequest implementations Change combine and combined value to use 0x2C 0x20
 Mar 10, 2017
annevk added a commit to web-platform-tests/wpt that referenced this pull request Mar 10, 2017
@annevk
Copy link
Member Author

annevk commented Mar 10, 2017

Tests: web-platform-tests/wpt#5115.

(There have also been tests modified on the XMLHttpRequest side. Those already landed.)

annevk added a commit to web-platform-tests/wpt that referenced this pull request Mar 10, 2017
@annevk annevk merged commit d9307bd into master Mar 10, 2017
@annevk
Copy link
Member Author

annevk commented Mar 10, 2017

Bugs filed are referenced in whatwg/xhr#108.

@annevk annevk deleted the annevk/combine branch March 10, 2017 18:11
annevk added a commit to whatwg/xhr that referenced this pull request Mar 13, 2017
In particular, setRequestHeader() should use 0x2C 0x20 as separator (not just 0x2C) and get(All)ResponseHeader(s)() should do so too. The latter also always needs to end in 0x0D 0x0A rather than omitting it at the end.

This depends on whatwg/fetch#504 landing first.

Tests: web-platform-tests/wpt#4641, web-platform-tests/wpt#5008, and web-platform-tests/wpt#5115.

Fixes #108 and fixes #109.
TimothyGu pushed a commit to node-fetch/node-fetch that referenced this pull request Apr 2, 2017
MXEBot pushed a commit to mirror/chromium that referenced this pull request Apr 20, 2017
Adapt to whatwg/fetch#504 and
whatwg/xhr#130, which started requiring combined
header list values to be separated by ", " instead of just ",".

The XHR code handling responses already did that, but |ResourceRequest| and
|FetchHeaderList| both had to be updated.

As a bonus, this also makes us pass w-p-t's headers-combine.html.

BUG=700434,705490
R=mkwst@chromium.org,tyoshino@chromium.org,yhirano@chromium.org

Review-Url: https://codereview.chromium.org/2822183002
Cr-Commit-Position: refs/heads/master@{#465537}
fatboy0112 added a commit to fatboy0112/node-fetch that referenced this pull request Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant