fix: ensure correct body for application/x-www-form-urlencoded in all code exports (#4712)
This commit is contained in:
parent
9c5ade8cc5
commit
fd3bf0e63e
1 changed files with 4 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue