Skip to content

Commit bbe653c

Browse files
committed
Ensure content-type is set so that compression gets enabled
1 parent 1c8bcd7 commit bbe653c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fixtures/flight/server/global.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ app.all('/', async function (req, res, next) {
8787

8888
try {
8989
const rscResponse = await promiseForData;
90+
res.set('Content-type', 'text/x-component');
9091
rscResponse.pipe(res);
9192
} catch (e) {
9293
console.error(`Failed to proxy request: ${e.stack}`);

0 commit comments

Comments
 (0)