Permalink
Browse files

send x-forwarded-for explicitly in the https test

  • Loading branch information...
1 parent 1633206 commit 81e70726e27d033e05d56257d1eabd486dfb38ad @substack committed Mar 22, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 test/https.js
View
@@ -24,7 +24,10 @@ test('https', function (t) {
var p1 = Math.floor(Math.random() * (Math.pow(2,16) - 1e4) + 1e4);
var s1 = bouncy(sOpts, function (req, bounce) {
- bounce(p0);
+ bounce({
+ port: p0,
+ headers: { 'x-forwarded-proto': 'https' }
+ });
});
s1.listen(p1, connect);

0 comments on commit 81e7072

Please sign in to comment.