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: don't send header values that are 'undefined' #360

Merged
merged 1 commit into from
Aug 26, 2021

Conversation

kanadgupta
Copy link
Member

🧰 Changes

In refactoring to node-fetch in #352, we're sending along bad headers to the API where the values are literally the string 'undefined', which are hitting weird errors in our version validation.

This centralizes our Basic Auth encoding logic and our header checks in a single function that ensures only valid strings are being sent as headers.

🧬 QA & Testing

See unit tests!

Fixes RM-2043

@kanadgupta kanadgupta requested a review from erunion August 26, 2021 00:51
@erunion erunion added the bug Something isn't working label Aug 26, 2021
@erunion erunion merged commit ae03c1e into main Aug 26, 2021
@erunion erunion deleted the fix-undefined-headers branch August 26, 2021 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants