Skip to content

js-fetch and nodejs-axios fail dealing line breaks(\r\n) in body  #350

@RikaKagurasaka

Description

@RikaKagurasaka

Describe the bug
When the post body includes line breaks(\r\n), (at least in multipart/form-data requests), the code in body part didn't escape \r.

To Reproduce
Generate code for request whose body contains \r

Expected code snippet and corresponding request
escape \r

Screenshots
图片

Version of postman-code-generators/Postman app:
v7.33.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions