Skip to content

Commit

Permalink
Cookie store _secureCookies: use correct protocol property in FastB…
Browse files Browse the repository at this point in the history
…oot mode
  • Loading branch information
lolmaus committed Nov 23, 2016
1 parent 3def912 commit 5ca4b4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addon/session-stores/cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ export default BaseStore.extend({

_secureCookies: computed(function() {
if (this.get('_fastboot.isFastBoot')) {
return this.get('_fastboot.request.host').indexOf('https:') === 0;
} else {
return window.location.protocol === 'https:';
return this.get('_fastboot.request.protocol') === 'https';
}

return window.location.protocol === 'https:';
}).volatile(),

_syncDataTimeout: null,
Expand Down

0 comments on commit 5ca4b4b

Please sign in to comment.