Don't test raw HTTP 1.0 requests over HTTPS.

This commit is contained in:
Nick Muerdter 2013-04-18 18:11:58 -06:00
parent a29b5e8e28
commit daf53bd753

View File

@ -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,