Skip to content

Commit

Permalink
Don't test raw HTTP 1.0 requests over HTTPS.
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed Apr 19, 2013
1 parent a29b5e8 commit daf53bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/macros/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ exports.assertProxied = function (options) {
// http proxy.
//
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 || {};

var ports = options.ports || helpers.nextPortPair,
Expand Down

0 comments on commit daf53bd

Please sign in to comment.