Open hendrikcech opened 10 years ago
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.
When passing an url string to https-browserify, a http request was send off. This commit simplifies the code and fixes that bug.