mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Don't test raw HTTP 1.0 requests over HTTPS.
This commit is contained in:
parent
a29b5e8e28
commit
daf53bd753
@ -156,6 +156,12 @@ exports.assertProxied = function (options) {
|
|||||||
// http proxy.
|
// http proxy.
|
||||||
//
|
//
|
||||||
exports.assertRawHttpProxied = function (options) {
|
exports.assertRawHttpProxied = function (options) {
|
||||||
|
// Don't test raw requests over HTTPS since options.rawRequest won't be
|
||||||
|
// encrypted.
|
||||||
|
if(helpers.protocols.proxy == 'https') {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
options = options || {};
|
options = options || {};
|
||||||
|
|
||||||
var ports = options.ports || helpers.nextPortPair,
|
var ports = options.ports || helpers.nextPortPair,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user