-
Notifications
You must be signed in to change notification settings - Fork 2k
Feature: Add 'mergeCookies' options #1375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1375 +/- ##
==========================================
+ Coverage 92.35% 92.61% +0.25%
==========================================
Files 6 6
Lines 314 325 +11
==========================================
+ Hits 290 301 +11
Misses 24 24
Continue to review full report at Codecov.
|
1fc1ef4
to
5fa7a1c
Compare
5fa7a1c
to
11480ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the couple spots to clean up the quotations, looks good to me. Go ahead and fix those up, and I'll put a note to review this PR for one of the next couple releases.
Thanks 😄
@@ -95,6 +96,9 @@ module.exports = { // <-- | |||
if (rewriteCookiePathConfig && key.toLowerCase() === 'set-cookie') { | |||
header = common.rewriteCookieProperty(header, rewriteCookiePathConfig, 'path'); | |||
} | |||
if (mergeCookiesConfig && key.toLowerCase() === 'set-cookie') { | |||
header = common.mergeSetCookie(res.getHeader("set-cookie"), header) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: Replace the "
with '
|
||
this.proxyRes.headers = Object.assign({}, this.proxyRes.headers, {'set-cookie': 'hello1; domain=my.domain; path=/'}); | ||
|
||
this.res.setHeader("set-cookie", 'hello; domain=my.domain; path=/'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: Replace the "
with '
Hello, Any updates for this feature merge? Thanks |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1375 +/- ##
==========================================
+ Coverage 92.35% 92.61% +0.25%
==========================================
Files 6 6
Lines 314 325 +11
==========================================
+ Hits 290 301 +11
Misses 24 24 ☔ View full report in Codecov by Sentry. |
Replace of #1318