Skip to content

Commit daf53bd

Browse files
committed
Don't test raw HTTP 1.0 requests over HTTPS.
1 parent a29b5e8 commit daf53bd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: test/macros/http.js

+6
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ exports.assertProxied = function (options) {
156156
// http proxy.
157157
//
158158
exports.assertRawHttpProxied = function (options) {
159+
// Don't test raw requests over HTTPS since options.rawRequest won't be
160+
// encrypted.
161+
if(helpers.protocols.proxy == 'https') {
162+
return true;
163+
}
164+
159165
options = options || {};
160166

161167
var ports = options.ports || helpers.nextPortPair,

0 commit comments

Comments
 (0)