diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-11-09 15:04:10 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-09 15:04:10 -0600 |
commit | 9a7559fd826f53a0020e5e9a575c8265ad349af7 (patch) | |
tree | 21ceaf73624a87f0251b4d3bef057975d493c160 /components/script/dom/processinginstruction.rs | |
parent | 289a289da209886f7259c71f279eb11f1c8ba0a3 (diff) | |
parent | bfd999f71e198cffb7b1e84d1848c871937e3bd8 (diff) | |
download | servo-9a7559fd826f53a0020e5e9a575c8265ad349af7.tar.gz servo-9a7559fd826f53a0020e5e9a575c8265ad349af7.zip |
Auto merge of #13802 - jeenalee:request-headers, r=jdm
Allow Request's Headers to be created with various objects
<!-- Please describe your changes on the following line: -->
While Headers could be constructed correctly with an array or
object (open ended dictionary/MozMap), Request's Headers failed to be
created with non-Headers object (such as array or open ended
dictionary/MozMap).
Before, Request's Headers could be filled with only a Headers object in
Step 28. This has been expanded to accommodate array and open ended
dictionary.
Step 29 empties the Request's Headers list after it had been filled in
Step 28, thus resulting in an empty Headers object when it shouldn't
be. This step has been removed with a comment in this commit.
If a RequestInit Headers is _not_ given, but a RequestInfo Headers is
given, RequestInfo Headers should be used to construct Request
Headers. That step has been added after Step 31.
Corresponding wpt result is updated in this commit.
---
<!-- 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 #13758 (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/13802)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/processinginstruction.rs')
0 files changed, 0 insertions, 0 deletions