diff options
| author | tv <tv@krebsco.de> | 2026-11-02 21:37:48 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-02 21:37:48 +0100 |
| commit | a6a4b846b34b9829b6ed6ead15f13ea00f73c03d (patch) | |
| tree | 4cc54dc7eb61b638b024bddc29aa0281d05f2167 /src/api/store.rs | |
| parent | f2b90bbcdb5347bfb68ee0e3343358e2a8e466dc (diff) | |
api: /stream & dashboard send X-Accel-Buffering
Diffstat (limited to 'src/api/store.rs')
| -rw-r--r-- | src/api/store.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/api/store.rs b/src/api/store.rs index 2b21c83..eac3262 100644 --- a/src/api/store.rs +++ b/src/api/store.rs @@ -923,6 +923,11 @@ async fn stream(state: AppState, key: String, path: Vec<String>) -> Result<Respo axum::http::header::CACHE_CONTROL, HeaderValue::from_static("no-cache, no-transform"), ); + // Through nginx too as it comes, not buffered (`operations.md`). + response.headers_mut().insert( + super::UNBUFFERED.0, + HeaderValue::from_static(super::UNBUFFERED.1), + ); Ok(response) } |
