From ea8e034b22e9036456d9a1dcfe921773270c8e4a Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Wed, 7 Sep 2022 13:50:23 +0200 Subject: [PATCH] [bfetch] set `'X-Accel-Buffering':'no'` to streaming response headers (#139534) --- src/plugins/bfetch/server/plugin.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/bfetch/server/plugin.ts b/src/plugins/bfetch/server/plugin.ts index cf7026b3757028..0f51f5da623534 100644 --- a/src/plugins/bfetch/server/plugin.ts +++ b/src/plugins/bfetch/server/plugin.ts @@ -65,6 +65,7 @@ const streamingHeaders = { 'Content-Type': 'application/x-ndjson', Connection: 'keep-alive', 'Transfer-Encoding': 'chunked', + 'X-Accel-Buffering': 'no', }; interface Query {