servo/components
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
..
allocator
atoms Add support for remaining animation and transition events 2020-05-26 20:34:58 +02:00
background_hang_monitor Use UnsafeCell instead of static mut in background_hang_monitor/sampler_linux.rs 2020-06-05 00:11:37 +02:00
bluetooth Some Cargo.toml cleanups 2020-05-13 22:09:56 -07:00
bluetooth_traits Some Cargo.toml cleanups 2020-05-13 22:09:56 -07:00
canvas Implement GPUSwapChain and GPUCanvasContext and interface with Webrender 2020-06-13 17:46:12 +05:30
canvas_traits Fix ./mach build --release --with-layout-2020 2020-06-10 22:34:24 +05:30
compositing Update webrender. 2020-06-11 14:07:39 -04:00
config Embedding API: prefs r/w 2020-06-10 09:38:13 +02:00
config_plugins More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
constellation Implement GPUSwapChain and GPUCanvasContext and interface with Webrender 2020-06-13 17:46:12 +05:30
debugger Update ipc-channel and crossbeam-channel. 2020-02-20 11:15:13 -05:00
deny_public_fields Upgrade to rustc 1.42.0-nightly (3291ae339 2020-01-15) 2020-01-16 08:46:41 +01:00
derive_common style: Gracefully handle errors creating shared memory UA style sheets. 2020-06-04 01:50:36 +02:00
devtools More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
devtools_traits More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
dom_struct
domobject_derive More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
embedder_traits More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
fallible More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
geometry
gfx Update webrender. 2020-06-11 14:07:39 -04:00
gfx_traits Update webrender. 2020-06-11 14:07:39 -04:00
hashglobe More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
jstraceable_derive
layout Implement GPUSwapChain and GPUCanvasContext and interface with Webrender 2020-06-13 17:46:12 +05:30
layout_2020 Add animation and transition support for pseudo-elements 2020-06-16 16:33:55 +02:00
layout_thread Add animation and transition support for pseudo-elements 2020-06-16 16:33:55 +02:00
layout_thread_2020 Add animation and transition support for pseudo-elements 2020-06-16 16:33:55 +02:00
layout_traits Remove unecessary webrender document from layout. 2020-06-09 13:05:16 -04:00
malloc_size_of More Cargo.toml updates 2020-05-25 11:34:37 -07:00
media Implement GPUSwapChain and GPUCanvasContext and interface with Webrender 2020-06-13 17:46:12 +05:30
metrics Remove support for energy profiling 2020-06-04 16:39:08 +02:00
msg Remove some unused dependency declarations 2020-05-29 00:04:34 +02:00
net fix streaming request bodies, terminate fetch if the body stream errors 2020-06-16 13:14:38 +08:00
net_traits fix streaming request bodies, terminate fetch if the body stream errors 2020-06-16 13:14:38 +08:00
pixels More Cargo.toml updates 2020-05-30 18:18:57 -07:00
profile Remove support for heartbeats profiling 2020-06-04 22:53:56 +02:00
profile_traits Remove support for heartbeats profiling 2020-06-04 22:53:56 +02:00
rand
range More Cargo.toml updates 2020-05-30 18:18:57 -07:00
remutex Fix rust's remutex source code link 2020-06-01 21:24:05 +09:00
script Auto merge of #26906 - gterzian:fix_streams_and_re-direct, r=Manishearth 2020-06-16 13:01:20 -04:00
script_layout_interface Auto merge of #26921 - mrobinson:animation-set-key, r=jdm 2020-06-16 03:25:29 -04:00
script_plugins Upgrade to rustc 1.44.0-nightly (42abbd887 2020-04-07) 2020-04-09 21:33:44 +02:00
script_traits Implement GPUSwapChain and GPUCanvasContext and interface with Webrender 2020-06-13 17:46:12 +05:30
selectors style: Rustfmt recent changes. 2020-06-04 02:02:50 +02:00
servo Implement GPUSwapChain and GPUCanvasContext and interface with Webrender 2020-06-13 17:46:12 +05:30
servo_arc More Cargo.toml updates 2020-05-30 18:18:57 -07:00
size_of_test
std_test_override
style Add animation and transition support for pseudo-elements 2020-06-16 16:33:55 +02:00
style_derive style: Rustfmt recent changes. 2020-06-04 02:02:50 +02:00
style_traits style: Miscellaneous servo build fixes. 2020-06-04 01:50:36 +02:00
to_shmem style: Gracefully handle errors creating shared memory UA style sheets. 2020-06-04 01:50:36 +02:00
to_shmem_derive style: Gracefully handle errors creating shared memory UA style sheets. 2020-06-04 01:50:36 +02:00
url style: Miscellaneous servo build fixes. 2020-06-04 01:50:36 +02:00
webdriver_server More Cargo.toml updates 2020-05-31 08:55:28 -07:00
webgpu Implement GPUSwapChain and GPUCanvasContext and interface with Webrender 2020-06-13 17:46:12 +05:30
webrender_surfman Update surfman to 0.2 and remove glutin 2020-04-17 23:44:53 -05:00
webrender_traits Implement GPUSwapChain and GPUCanvasContext and interface with Webrender 2020-06-13 17:46:12 +05:30