-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
http: header_map coalescing is not explicitly handled #9221
Comments
Josh, I'm not sure what you're asking for here. The O(1) list works by auto-coalescing, so if you add set-cookie to the O(1) list, you're coalescing, which is a functional behavior change. |
3 things to consider:
|
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions. |
I could not find a canonical source for this, but in the past I've used https://src.chromium.org/viewvc/chrome/trunk/src/net/http/http_util.cc#l368 (Chrome's HttpUtil::IsNonCoalescingHeader() function) as the source of truth of how to represent multiple values for the same header.
For Envoy, this is probably most important for Cookies. But the Chrome source has these:
This works properly in Envoy for Set-Cookie and there's a test for it, but it only works because Set-Cookie is not listed as one of the predefined O(1) headers. Adding SetCookie to that list in include/envoy/http/header_map.h breaks HeaderMapImplTest.DoubleCookieAdd . There is no test for the behavior of Cookie AFAICT. But at the very least, I think adding "Set-Cookie" to the O(1) list should not change its functional behavior.
#7488 makes interesting reading also.
@alyssawilk @mattklein123 @asraa
The text was updated successfully, but these errors were encountered: