Auto merge of #14784 - mattnenterprise:fetch-api-updates, r=jdm,KiChjang

Updating http_network_or_cache_fetch to better match the fetch API spec

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

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

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

<!-- 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/14784)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-01-02 11:30:51 -08:00 committed by GitHub
commit 987b640c54
5 changed files with 109 additions and 70 deletions

View file

@ -1,5 +0,0 @@
[send-entity-body-empty.htm]
type: testharness
[XMLHttpRequest: send("") - empty entity body (HEAD)]
expected: FAIL

View file

@ -1,5 +0,0 @@
[send-entity-body-get-head.htm]
type: testharness
[XMLHttpRequest: send() - non-empty data argument and GET/HEAD (HEAD)]
expected: FAIL

View file

@ -1,8 +0,0 @@
[send-entity-body-none.htm]
type: testharness
[No content type (HEAD)]
expected: FAIL
[Explicit content type (HEAD)]
expected: FAIL

View file

@ -1,9 +1,5 @@
[request-cache-control.htm]
type: testharness
expected: TIMEOUT
[EventSource: Cache-Control]
expected: TIMEOUT
[EventSource: Cache-Control 1]
expected: TIMEOUT