We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34468a1 commit e418e90Copy full SHA for e418e90
src/handlers/fix-request-body.ts
@@ -17,7 +17,7 @@ export function fixRequestBody(proxyReq: ClientRequest, req: Request): void {
17
proxyReq.write(bodyData);
18
};
19
20
- if (contentType.includes('application/json')) {
+ if (contentType && contentType.includes('application/json')) {
21
writeBody(JSON.stringify(req.body));
22
}
23
0 commit comments