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.
Files changed (2) hide show
  1. package/index.js +4 -4
  2. 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-http1",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "Native HTTP/1 library for JavaScript",
5
5
  "exports": {
6
6
  ".": "./index.js",