servo/components/script
bors-servo 16a99daa22
Auto merge of #26906 - gterzian:fix_streams_and_re-direct, r=Manishearth
Fix streaming request bodies

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

FIX #26904

At this point I'm not sure if the hyper `Body::wrap_stream` integration by way of the IPC route is broken, or if perhaps there is a problem with the WPT server not handling the requests properly, as I am getting a bunch of:

```
 0:04.54 INFO STDERR: 127.0.0.1 - - [13/Jun/2020 18:22:08] code 400, message Bad request syntax ('4')
 0:04.54 INFO STDERR: 127.0.0.1 - - [13/Jun/2020 18:22:08] "4" 400 -
```

In any case, the `start_reading` call in `body.rs` had to be put into the other function, since it should not be called for each chunk(this was actually failing before).

I've also added the chunked header in case the source is a stream.

Last thing to figure out, why is the request data not actually reaching the server, or not being handled properly by it.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- 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. -->
2020-06-16 13:01:20 -04:00
..
docs Update doc links and code snippet for trace implementation 2020-05-03 19:03:33 +05:30
dom Auto merge of #26921 - mrobinson:animation-set-key, r=jdm 2020-06-16 03:25:29 -04:00
task_source
animation_timeline.rs Move most animation processing to script 2020-05-12 10:22:14 +02:00
animations.rs Add animation and transition support for pseudo-elements 2020-06-16 16:33:55 +02:00
body.rs fix streaming request bodies, terminate fetch if the body stream errors 2020-06-16 13:14:38 +08:00
build.rs Update error message. 2020-05-04 11:52:49 -04:00
canvas_state.rs Fix ./mach build --release --with-layout-2020 2020-06-10 22:34:24 +05:30
Cargo.toml Implement GPURenderPipeline 2020-05-30 11:38:32 +05:30
clipboard_provider.rs
devtools.rs Report real caller information for console APIs to devtools. 2020-04-28 21:32:41 -04:00
document_loader.rs
euclidext.rs Update euclid 2020-04-07 08:51:08 -07:00
fetch.rs integrate readablestream with fetch and blob 2020-06-04 11:38:35 +08:00
image_listener.rs Refactor ImageCache::find_image_or_metadata API. 2020-04-17 11:58:18 -04:00
init.rs allow for a service worker manager per origin 2020-04-05 22:43:40 +08:00
layout_image.rs
lib.rs serviceworker: make job queue unique per origin 2020-05-21 13:21:21 +08:00
mem.rs
microtask.rs Propagate user interacting flag to timers and promises 2020-03-26 08:36:57 +01:00
network_listener.rs
realms.rs
script_module.rs Move away from Promise.all way and check if we need to finish manually 2020-06-13 11:11:25 +09:00
script_runtime.rs integrate readablestream with fetch and blob 2020-06-04 11:38:35 +08:00
script_thread.rs Make clicking on an element request focus for focusable elements. 2020-06-15 11:22:28 -04:00
serviceworker_manager.rs add a control chan to workers, use to signal shutdown 2020-06-03 12:32:47 +08:00
stylesheet_loader.rs Properly set the url on the Response object when the response is an opaqueredirect 2020-05-06 20:08:26 +02:00
stylesheet_set.rs
task.rs partially integrate streaming request bodies with http re-direct 2020-06-04 11:38:38 +08:00
task_manager.rs
task_queue.rs
test.rs
textinput.rs Form constraints validation 2020-04-02 10:16:46 +02:00
timers.rs Propagate user interacting flag to timers and promises 2020-03-26 08:36:57 +01:00
unpremultiplytable.rs
webdriver_handlers.rs