gstreamer/subprojects/gst-examples
François Laignel 1abc8aa733 examples: webrtc/janus/rust: add mandatory ws HTTP request headers
Trying to run the `janus` Rust `gst-example`, `tungstenite` reports:

> Missing, duplicated or incorrect header sec-websocket-key

Indeed, all mandatory headers from the following list are missing
(code from `tungstenite:🤝:client::generate_request`):

```rust
const WEBSOCKET_HEADERS: [&str; 5] =
    ["Host", "Connection", "Upgrade", "Sec-WebSocket-Version", KEY_HEADERNAME];
```

These headers are mandatory for the websocket handshake. This feature is
selected by async-tungstenite.

Prior to this commit, the HTTP request was created with the header
"Sec-WebSocket-Protocol" only. Delegating the request creation to tungstenite
adds the missing headers.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4240>
2023-03-22 09:48:28 +00:00
..
network gst-examples: drop use of GSlice allocator 2023-02-03 17:48:09 +00:00
playback examples: iOS: GstPlay: update for pending ivorbisdec plugin removal 2023-02-27 17:40:43 +00:00
vulkan/android examples/docs: update android applications to the latest relevant sdk's and build tools 2022-02-07 06:51:58 +00:00
webrtc examples: webrtc/janus/rust: add mandatory ws HTTP request headers 2023-03-22 09:48:28 +00:00
COPYING Move files from gst-examples into the "subprojects/gst-examples/" subdir 2021-09-24 16:15:58 -03:00
meson.build Back to development 2023-01-23 23:04:53 +00:00
meson_options.txt examples: Add an option to disable tests 2023-02-10 12:59:55 +00:00