https module. Currently the https module uses http.request under the hood. http module succeeds in making requests to a url with https protocol which it shouldn't https://github.com/oven-sh/bun/blob/main/src/js/node/http.ts#L1401 instead it should throw an invalid protocol error.
What is the feature you are proposing to solve the problem?
What is the problem this feature would solve?
https module. Currently the https module uses
http.request
under the hood. http module succeeds in making requests to a url with https protocol which it shouldn't https://github.com/oven-sh/bun/blob/main/src/js/node/http.ts#L1401 instead it should throw an invalid protocol error.What is the feature you are proposing to solve the problem?
A https module.
What alternatives have you considered?
No response