Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants