No description
  • Rust 98.8%
  • JavaScript 1.1%
  • Makefile 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Thomas Lamprecht 6e19a8740f http wasm client: ask for json-seq and own the request while it streams
A streaming request sent no Accept header, so a server handling it
with a streaming handler collected all records into one document
before answering. It also created an abort guard that lived only as
long as the request future, which ends with the response head, so
the fetch was aborted before a byte of the body could be read: every
read of the body failed with an abort error. The native client in
proxmox-client sends the header and keeps its connection, so only the
wasm client was affected.

Send the Accept header, and hand the guard on with the body instead
of dropping it. The request is then aborted when the future is
dropped while the head is awaited, when the caller discards the
body, or when a reader made from the body is dropped before the
stream's end. The body type of the client thus changes from the raw
browser stream to a wrapper that owns the request; readers and
record streams are made from it as before.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2026-10-16 01:49:53 +02:00
.cargo rename .cargo/config to .cargo/config.toml 2024-08-12 11:02:29 +02:00
debian bump version to 0.8.25 2026-10-16 00:37:05 +02:00
src http wasm client: ask for json-seq and own the request while it streams 2026-10-16 01:49:53 +02:00
tests/browser dialogs: allow close checks in edit windows and wizards 2026-09-10 03:46:19 +02:00
.gitignore Add build directory to .gitignore 2026-04-02 11:11:52 +02:00
Cargo.toml bump version to 0.8.25 2026-10-16 00:37:05 +02:00
js-helper-module.js js-helper: clear the auth cookie across all paths 2026-06-28 23:58:57 +02:00
Makefile dialogs: allow close checks in edit windows and wizards 2026-09-10 03:46:19 +02:00
TODO.md TODO: add todo list 2023-10-04 07:05:39 +02:00