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
Fix the uri of ArmeriaServerHttpRequest to contain the base url #1904
Conversation
Motivation: The uri of `ServerHttpRequest` in Spring Web flux contains the base url. Also a negative value of "max-age" from "set-cookie" means do "max-age" attribute, we shouldn't set it. Modification: - Add the base url when `ArmeriaServerHttpRequest` is created. - Do not set max-age from set-cookie when the value is negative Result: - More Spring integration
Codecov Report
@@ Coverage Diff @@
## master #1904 +/- ##
============================================
- Coverage 73.26% 73.25% -0.02%
- Complexity 8973 8977 +4
============================================
Files 794 794
Lines 35162 35170 +8
Branches 4317 4322 +5
============================================
+ Hits 25762 25764 +2
- Misses 7200 7201 +1
- Partials 2200 2205 +5
Continue to review full report at Codecov.
|
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.
Thanks!
...ure/src/test/java/com/linecorp/armeria/spring/web/reactive/ArmeriaServerHttpRequestTest.java
Outdated
Show resolved
Hide resolved
Special thanks to @jinsankim for reporting this issue and providing useful hints and sample application. ❤️ |
...nfigure/src/main/java/com/linecorp/armeria/spring/web/reactive/ArmeriaServerHttpRequest.java
Show resolved
Hide resolved
…#1904) Motivation: The uri of `ServerHttpRequest` in Spring Web flux contains the base URL. Also, a negative value of "max-age" from "set-cookie" means no "max-age" attribute, we shouldn't set it. Modification: - Add the base URL when `ArmeriaServerHttpRequest` is created. - Do not set max-age from set-cookie when the value is negative Result: - Spring integration works as expected
Motivation:
The uri of
ServerHttpRequest
in Spring Web flux contains the base URL.Also, a negative value of "max-age" from "set-cookie" means no "max-age" attribute, we shouldn't set it.
Modification:
ArmeriaServerHttpRequest
is created.Result: