bare-http1 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -44,10 +44,10 @@ exports.request = function request (url, opts, onresponse) {
|
|
|
44
44
|
function defaultPort (url) {
|
|
45
45
|
switch (url.protocol) {
|
|
46
46
|
case 'ftp:': return 21
|
|
47
|
-
case 'http':
|
|
48
|
-
case 'ws': return 80
|
|
49
|
-
case 'https':
|
|
50
|
-
case 'wss': return 443
|
|
47
|
+
case 'http:':
|
|
48
|
+
case 'ws:': return 80
|
|
49
|
+
case 'https:':
|
|
50
|
+
case 'wss:': return 443
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
return null
|