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(node/http(s)): Set the url protocol by default #2480

Merged
merged 4 commits into from
Jul 29, 2022
Merged

Conversation

gamer0mega
Copy link
Contributor

Node automatically sets the protocol in http and https defaults, which makes some node modules break if they do not set a protocol in the options.

Feel free to improve the code added as I'm not that familiar with how ts works.

@CLAassistant
Copy link

CLAassistant commented Jul 28, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gamer0mega Thanks for the PR.

Confirmed this behavior is compatible with Node.js. LGTM

(I added a test case)

@kt3k kt3k merged commit 44d05e7 into denoland:main Jul 29, 2022
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

3 participants