Skip to content

HttpClient with fetch doesn't handle query params #50728

@MikaStark

Description

@MikaStark

Which @angular/* package(s) are the source of the bug?

common

Is this a regression?

Yes

Description

Hi !
It seems using provideHttpClient with withFetch feature leads to inability to sent query params through the params option.

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/stackblitz-starters-sobshk?file=src%2Fmain.ts

Please provide the exception or error you saw

Just query params are not in the request

Please provide the environment you discovered this bug in (run ng version)

Project generated with @angular/cli 16.1.1

Anything else?

No response

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: common/httpIssues related to HTTP and HTTP Clientstate: has PR

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions