Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMade http_redirect_fetch error for non-HTTPS. #14069 #14420
Conversation
highfive
commented
Nov 30, 2016
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @KiChjang (or someone else) soon. |
highfive
commented
Nov 30, 2016
|
Heads up! This PR modifies the following files:
|
|
Thanks for your PR! There are a couple of minor changes, r=me after they're fixed. For the questions you posed, I don't think it's necessary to resolve them in this PR since they're out of scope. I'd also encourage you to comment on the relevant issue first before working on it next time. |
| // TODO implement return network_error if not HTTP(S) | ||
| match location_url.scheme() { | ||
| "http" => { }, | ||
| "https" => { }, |
This comment has been minimized.
This comment has been minimized.
| match location_url.scheme() { | ||
| "http" => { }, | ||
| "https" => { }, | ||
| _ => return Response::network_error(NetworkError::Internal("Not an HTTPS Scheme".into())) |
This comment has been minimized.
This comment has been minimized.
|
@46bit That message was intended for other reviewers indicating that this patch can be landed if I happen to be away for a while. Thanks for your contribution nonetheless! @bors-servo r+ |
|
|
Made http_redirect_fetch error for non-HTTPS. #14069 Hi! I'm a newbie looking to resolve #14069. The [existing tests](https://dxr.mozilla.org/servo/source/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-schemes.html) now pass. Cheers! --- <!-- 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 #14069 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR <!-- - [ ] These changes do not require tests because _____ --> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14420) <!-- Reviewable:end -->
|
|
|
@bors-servo retry servo/saltfs#545 |
Made http_redirect_fetch error for non-HTTPS. #14069 Hi! I'm a newbie looking to resolve #14069. The [existing tests](https://dxr.mozilla.org/servo/source/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-schemes.html) now pass. Cheers! --- <!-- 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 #14069 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR <!-- - [ ] These changes do not require tests because _____ --> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14420) <!-- Reviewable:end -->
|
|
|
Looks like more tests are passing after your changes:
You'll need to update the test expectations accordingly. |
|
Aha. I've removed the outdated expectations and checked the full |
|
Thanks! @bors-servo r+ |
|
|
Made http_redirect_fetch error for non-HTTPS. #14069 Hi! I'm a newbie looking to resolve #14069. The [existing tests](https://dxr.mozilla.org/servo/source/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-schemes.html) now pass. Cheers! --- <!-- 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 #14069 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR <!-- - [ ] These changes do not require tests because _____ --> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14420) <!-- Reviewable:end -->
|
|
46bit commentedNov 30, 2016
•
edited
Hi! I'm a newbie looking to resolve #14069.
The existing tests now pass.
Cheers!
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is