Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

fix: types for outgoing http headers #77

Merged
merged 1 commit into from
Jun 19, 2019

Conversation

boopathi
Copy link
Member

@boopathi boopathi commented Jun 18, 2019

The NodeJS typescript definitions has OutgoingHttpHeaders with undefined as one of the possible values, but NodeJS runtime will throw an error for undefined values in headers.

We overwrite the headers type in the RequestOptions and removes undefined from one of the possible values of headers.

Upstream discussion/changes: DefinitelyTyped/DefinitelyTyped#36265

Why did it have undefined in the first place? - likely a workaround for some cases - DefinitelyTyped/DefinitelyTyped#20695 (comment)

@boopathi
Copy link
Member Author

👍

1 similar comment
@grassator
Copy link
Contributor

👍

@grassator grassator merged commit 3da35d2 into zalando-incubator:master Jun 19, 2019
@boopathi boopathi deleted the outgoing-headers-type branch June 19, 2019 12:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants