http-browserify
http-browserify copied to clipboard
replace params.scheme with params.protocol
When passing an url string to https-browserify, a http request was send off. This commit simplifies the code and fixes that bug.
this looks like it actually complicates the code - what bug does this fix? Probably should add a test to exercise it
It needs to be more complicate to be backwards compatible. This change is necessary to be consistent with the node api. It's also connected to this bug: substack/https-browserify#1.