Skip to content

Commit

Permalink
feat: add 'secureProxy' patch from mozilla/node-client-sessions#132
Browse files Browse the repository at this point in the history
  • Loading branch information
DarylPinto committed May 17, 2020
1 parent f9b4894 commit 928399c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/modules/client-sessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,12 @@ function clientSessionFactory(opts) {
if (propertyName in req) {
return next(); //self aware
}

var cookies = new Cookies(req, res);
var options
if (opts.cookie.secureProxy) {
options = { secure: opts.cookie.secureProxy }
delete opts.cookie.secureProxy
}
var cookies = new Cookies(req, res, options);
var rawSession;
try {
rawSession = new Session(req, res, cookies, opts);
Expand Down

0 comments on commit 928399c

Please sign in to comment.