fix: ensure correct body for application/x-www-form-urlencoded in all code exports (#4712)

This commit is contained in:
shuaixr 2025-02-06 01:12:30 -08:00 committed by GitHub
parent 9c5ade8cc5
commit fd3bf0e63e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -468,6 +468,10 @@ export const resolvesEnvsInBody = (
if (isJSONContentType(body.contentType))
bodyContent = stripComments(body.body)
if (body.contentType === "application/x-www-form-urlencoded") {
bodyContent = body.body
}
return {
contentType: body.contentType,
body: parseTemplateString(bodyContent, env.variables, false, true),