servo/components
bors-servo 1e10f8bbf7 Auto merge of #12915 - jeenalee:parse-headers, r=Manishearth
Include "content-type" in cors safelisted request headers.

<!-- Please describe your changes on the following line: -->

The changes in headers.rs will allow headers with "content-type" name to be classified as cors safelisted request headers, depending on its value according to [the Fetch spec](https://fetch.spec.whatwg.org/#cors-safelisted-request-header). As a result of this change, more request web platform tests pass, whose expected test results are updated with this commit.

There is possibly one TODO related to this PR:
- Figure out what `name/'invalid'` is in step 4 of the [Headers Delete method](https://fetch.spec.whatwg.org/#dom-headers-delete), and how to implement that.

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because web platform tests for the changes already exist.

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

This commit allows headers with "content-type" name to be classified as valid header name, depending on its value according to [the Fetch spec](https://fetch.spec.whatwg.org/#cors-safelisted-request-header). As a result of this change, more request web platform tests pass, whose expected test results are updated as well.

<!-- 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/12915)
<!-- Reviewable:end -->
2016-08-22 20:17:16 -05:00
..
canvas Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
canvas_traits Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
compositing Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
constellation Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
devtools Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
devtools_traits Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
gfx Auto merge of #12938 - nox:fontsan, r=larsbergstrom 2016-08-22 19:20:19 -05:00
gfx_traits Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
layout Auto merge of #12930 - canaltinova:border-bottom, r=emilio 2016-08-22 06:57:57 -05:00
layout_thread Move thread_state to style. 2016-08-22 16:08:56 +02:00
layout_traits Update to webrender 0.4.0 2016-08-18 19:33:12 +02:00
msg Update to webrender 0.4.0 2016-08-18 19:33:12 +02:00
net Burn SelectedFileId in fire 2016-08-22 10:05:01 +02:00
net_traits Burn SelectedFileId in fire 2016-08-22 10:05:01 +02:00
plugins Update Rust to 1.13.0-nightly (499484f56 2016-08-18) 2016-08-20 17:29:49 +02:00
profile Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
profile_traits Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
range Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
script Auto merge of #12915 - jeenalee:parse-headers, r=Manishearth 2016-08-22 20:17:16 -05:00
script_layout_interface Auto merge of #12943 - servo:merged-declaration-block, r=emilio 2016-08-21 03:43:25 -05:00
script_traits Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
servo Sanitise web fonts 2016-08-22 16:10:31 +02:00
style Auto merge of #12970 - servo:thread-state, r=nox 2016-08-22 10:39:51 -05:00
style_traits Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
util Move thread_state to style. 2016-08-22 16:08:56 +02:00
webdriver_server Burn SelectedFileId in fire 2016-08-22 10:05:01 +02:00