Closed Hsn723 closed 5 years ago
https://github.com/keystonejs/keystone/blob/master/lib/middleware/language.js#L8 The language middleware accepts a language cookie options configuration, but that value is not being used when creating the cookie: https://github.com/keystonejs/keystone/blob/master/lib/middleware/language.js#L14-L17
language cookie options
This PR fixes this by consuming the given option.
npm run test-all
Thanks @Hsn723!
Description of changes
https://github.com/keystonejs/keystone/blob/master/lib/middleware/language.js#L8 The language middleware accepts a
language cookie options
configuration, but that value is not being used when creating the cookie: https://github.com/keystonejs/keystone/blob/master/lib/middleware/language.js#L14-L17This PR fixes this by consuming the given option.
Related issues (if any)
Testing
npm run test-all
ran successfully.