Skip to content

Commit

Permalink
fix: multipart/form-data codegen to use backticks instead of single q…
Browse files Browse the repository at this point in the history
…uote (#220)
  • Loading branch information
tom-miseur authored Sep 25, 2024
1 parent c699ed0 commit f519861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export function generateSingleRequestSnippet(
}

if (contentTypeHeader.includes('multipart/form-data')) {
content = `'${request.content.replace(/(?:\r\n|\r|\n)/g, '\\r\\n')}'`
content = `\`${request.content.replace(/(?:\r\n|\r|\n)/g, '\\r\\n')}\``
}
}
} catch (error) {
Expand Down

0 comments on commit f519861

Please sign in to comment.