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

Accept UTF8 cookie header values #25634

Merged
merged 1 commit into from Jan 30, 2020
Merged

Accept UTF8 cookie header values #25634

merged 1 commit into from Jan 30, 2020

Conversation

@pshaughn
Copy link
Member

pshaughn commented Jan 28, 2020

HeaderValue::to_str only works on ASCII; cookies can be utf8 too, so we decode accordingly.


  • ./mach build -d does not report any errors

  • ./mach test-tidy does not report any errors

  • These changes fix #25608

  • There are tests for these changes in http_loader; I don't know whether websocket cookies have tests.

@highfive
Copy link

highfive commented Jan 28, 2020

Heads up! This PR modifies the following files:

  • @KiChjang: components/net/websocket_loader.rs, components/net/http_loader.rs
@jdm
Copy link
Member

jdm commented Jan 28, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Jan 28, 2020

📌 Commit fc13bd8 has been approved by jdm

@highfive highfive assigned jdm and unassigned Manishearth Jan 28, 2020
@bors-servo
Copy link
Contributor

bors-servo commented Jan 29, 2020

Testing commit fc13bd8 with merge 03d5967...

bors-servo added a commit that referenced this pull request Jan 29, 2020
Accept UTF8 cookie header values

<!-- Please describe your changes on the following line: -->
HeaderValue::to_str only works on ASCII; cookies can be utf8 too, so we decode accordingly.

---
<!-- 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 #25608

- [ ] There are tests for these changes in http_loader; I don't know whether websocket cookies have tests.

<!-- 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 Jan 29, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Jan 29, 2020

bors-servo added a commit that referenced this pull request Jan 29, 2020
Accept UTF8 cookie header values

<!-- Please describe your changes on the following line: -->
HeaderValue::to_str only works on ASCII; cookies can be utf8 too, so we decode accordingly.

---
<!-- 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 #25608

- [ ] There are tests for these changes in http_loader; I don't know whether websocket cookies have tests.

<!-- 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 Jan 29, 2020

Testing commit fc13bd8 with merge 2b05cb8...

@bors-servo
Copy link
Contributor

bors-servo commented Jan 29, 2020

💔 Test failed - status-taskcluster

@CYBAI
Copy link
Collaborator

CYBAI commented Jan 29, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Jan 29, 2020

Testing commit fc13bd8 with merge 96d6de3...

bors-servo added a commit that referenced this pull request Jan 29, 2020
Accept UTF8 cookie header values

<!-- Please describe your changes on the following line: -->
HeaderValue::to_str only works on ASCII; cookies can be utf8 too, so we decode accordingly.

---
<!-- 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 #25608

- [ ] There are tests for these changes in http_loader; I don't know whether websocket cookies have tests.

<!-- 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 Jan 29, 2020

💔 Test failed - status-taskcluster

@CYBAI
Copy link
Collaborator

CYBAI commented Jan 30, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Jan 30, 2020

Testing commit fc13bd8 with merge b939b38...

bors-servo added a commit that referenced this pull request Jan 30, 2020
Accept UTF8 cookie header values

<!-- Please describe your changes on the following line: -->
HeaderValue::to_str only works on ASCII; cookies can be utf8 too, so we decode accordingly.

---
<!-- 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 #25608

- [ ] There are tests for these changes in http_loader; I don't know whether websocket cookies have tests.

<!-- 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 Jan 30, 2020

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

@bors-servo bors-servo merged commit fc13bd8 into servo:master Jan 30, 2020
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.

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