Skip to content

request lost content-length header and so on when post formData lead to server error #2065

@AisonSu

Description

@AisonSu

Bug Description

when i use request to post formdata, server report error 412,but use fetch with same config it will work normally

Reproducible By

Use request and fetch post formdata to same address

Expected Behavior

request should entirely have same headers which fetch have i think

Logs & Screenshots

微信截图_20230413054836微信截图_20230413054924

Environment

Win11 22621.1413
Node v18.12.1

Additional context

short of content-length and so on

Metadata

Metadata

Assignees

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