We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 725ca91 commit d77a6dfCopy full SHA for d77a6df
.changeset/wild-rivers-destroy.md
@@ -0,0 +1,6 @@
1
+---
2
+'@modern-js/server-core': patch
3
4
+
5
+feat(server): allow x-parse-through-body header to parse through the body of req
6
+feat(server): 添加 x-parse-through-body 以透传请求体
packages/server/core/src/adapters/node/node.ts
@@ -39,7 +39,8 @@ export const createWebRequest = (
39
(!(method === 'GET' || method === 'HEAD') &&
40
req.url?.includes('__loader')) ||
41
req.headers['x-mf-micro'] ||
42
- req.headers['x-rsc-action']
+ req.headers['x-rsc-action'] ||
43
+ req.headers['x-parse-through-body']
44
) {
45
init.body = body ?? createReadableStreamFromReadable(req);
46
(init as { duplex: 'half' }).duplex = 'half';
0 commit comments