Skip to content

fixRequestBody not work #728

@goldcome

Description

@goldcome

Checks

Describe the bug (be clear and concise)

fixRequestBody not work,proxyReq.getHeader('Content-Type') result is application/x-www-form-urlencoded; charset=UTF-8

but code is if (contentType === 'application/x-www-form-urlencoded') so not work.

Step-by-step reproduction instructions

none

Expected behavior (be clear and concise)

none

How is http-proxy-middleware used in your project?

none

What http-proxy-middleware configuration are you using?

none

What OS/version and node/version are you seeing the problem?

node16 ubunt18.04

Additional context (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions