Skip to content

Param with value of null is replaced with "{}" #2819

@chinesedfan

Description

@chinesedfan

Describe the bug

Param with value of null is replaced with "{}"

To Reproduce

axios.get('/whatever', {params: {test: null}}) used to make GET request to /whatever, now it's /whatever?test=%7B%7D

Expected behavior

Should request to /whatever.

Environment:

  • Axios Version [the current master]

Additional context/Screenshots

See #2656 (comment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions