Skip to content

QueryStringAddon converts undefined values into empty strings instead of omitting them #229

@dankochetov

Description

@dankochetov

For a query like this

wretch('https://example.com').addon(QueryStringAddon).query({ bar: 'qwe', foo: undefined }).post().json();

The produced URL is https://example.com?bar=qwe&foo= instead of https://example.com?bar=qwe

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions