Skip to content

Angular Client Content-Type header not stripped on bodyless requests #3987

Description

@joshkaplinsky

Description

In the generated @hey-api/client-angular client, the following snippet will remove the 'Content-Type' header, but does not reassign the HttpHeaders to opts.headers. Angular's HttpHeaders are immutable and .delete() returns a copy with the header removed.

https://github.com/hey-api/openapi-ts/blob/82e9f18f9076948c08d3bbdadbca2f7b8c4df017/packages/openapi-ts/src/plugins/%40hey-api/client-angular/bundle/client.ts#L83-L86

Reproducible example or configuration

No response

OpenAPI specification (optional)

No response

System information (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🔥Broken or incorrect behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions