@rubynetwork/rh
Advanced tools
Comparing version 1.2.73 to 1.2.74
@@ -0,1 +1,5 @@ | ||
## 1.2.74 | ||
- Enforce https:// | ||
## 1.2.73 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "@rubynetwork/rh", | ||
"version": "1.2.73", | ||
"version": "1.2.74", | ||
"description": "User friendly web proxy powered by testcafe-hammerhead", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -37,2 +37,3 @@ import fs from 'fs'; | ||
const { origin_proxy } = cookie.parse(req.headers.cookie || ''); | ||
console.log(req.socket) | ||
let origin; | ||
@@ -43,3 +44,3 @@ try { | ||
console.log(err, req.headers.cookie); | ||
origin = new URL(`${req.socket.encrypted ? 'https:' : 'http:'}//${req.headers.host}`); | ||
origin = new URL(`https://${req.headers.host}`); | ||
} | ||
@@ -46,0 +47,0 @@ const { hostname, port, protocol } = origin; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2851664
49608