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

Autocomputed content-type header now reaches net request #25359

Merged
merged 1 commit into from Dec 22, 2019

Conversation

@pshaughn
Copy link
Member

pshaughn commented Dec 22, 2019

The spec expects that for a DOM Request r, r.headers and r.request can actually refer to the same header list in RAM, with changes to one affecting the other. This is mostly unobservable, but it happens to come up at the point in the Request constructor that auto-infers a content type from the body, so now after inferring the content type it injects it into both header lists instead of one.
Remaining test failures are due to the way Hyper crates normalize semicolons in MIME types, and an actually separate problem about content-lengths that I haven't sniffed out yet.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix some WPT results from #24904
  • There are tests for these changes
@highfive
Copy link

highfive commented Dec 22, 2019

Heads up! This PR modifies the following files:

@jdm
Copy link
Member

jdm commented Dec 22, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Dec 22, 2019

📌 Commit b9c4b64 has been approved by jdm

@highfive highfive assigned jdm and unassigned nox Dec 22, 2019
@bors-servo
Copy link
Contributor

bors-servo commented Dec 22, 2019

Testing commit b9c4b64 with merge 8bb6630...

bors-servo added a commit that referenced this pull request Dec 22, 2019
Autocomputed content-type header now reaches net request

The spec expects that for a DOM Request r, r.headers and r.request can actually refer to the same header list in RAM, with changes to one affecting the other. This is mostly unobservable, but it happens to come up at the point in the Request constructor that auto-infers a content type from the body, so now after inferring the content type it injects it into both header lists instead of one.
Remaining test failures are due to the way Hyper crates normalize semicolons in MIME types, and an actually separate problem about content-lengths that I haven't sniffed out yet.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix some WPT results from #24904

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
@bors-servo
Copy link
Contributor

bors-servo commented Dec 22, 2019

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Dec 22, 2019

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Dec 22, 2019

Testing commit b9c4b64 with merge 43a5f65...

bors-servo added a commit that referenced this pull request Dec 22, 2019
Autocomputed content-type header now reaches net request

The spec expects that for a DOM Request r, r.headers and r.request can actually refer to the same header list in RAM, with changes to one affecting the other. This is mostly unobservable, but it happens to come up at the point in the Request constructor that auto-infers a content type from the body, so now after inferring the content type it injects it into both header lists instead of one.
Remaining test failures are due to the way Hyper crates normalize semicolons in MIME types, and an actually separate problem about content-lengths that I haven't sniffed out yet.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix some WPT results from #24904

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
@bors-servo
Copy link
Contributor

bors-servo commented Dec 22, 2019

☀️ Test successful - status-taskcluster
Approved by: jdm
Pushing 43a5f65 to master...

@bors-servo bors-servo merged commit b9c4b64 into servo:master Dec 22, 2019
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.