Skip to content

fix(fixRequestBody): support text/plain #1103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 17, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: add text/plain to fixRequestBody
  • Loading branch information
knudtty authored and chimurai committed Apr 17, 2025
commit 054c2f6357da2e2b904033aff7ffa2e539f00aa1
2 changes: 2 additions & 0 deletions src/handlers/fix-request-body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export function fixRequestBody<TReq extends BodyParserLikeRequest = BodyParserLi
writeBody(querystring.stringify(requestBody));
} else if (contentType.includes('multipart/form-data')) {
writeBody(handlerFormDataBodyData(contentType, requestBody));
} else if (contentType.includes('text/plain')) {
writeBody(requestBody);
}
}

Expand Down