-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Issue #4825 - Implement spec requirements for Request.newPushBuilder #4829
Conversation
Signed-off-by: Jan Bartel <janb@webtide.com>
Signed-off-by: Jan Bartel <janb@webtide.com>
Signed-off-by: Jan Bartel <janb@webtide.com>
Signed-off-by: Jan Bartel <janb@webtide.com>
jetty-server/src/main/java/org/eclipse/jetty/server/PushBuilderImpl.java
Outdated
Show resolved
Hide resolved
continue; | ||
switch (header) | ||
{ | ||
case SET_COOKIE: |
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.
You can easily coalesce the null-check and the switch into a single if (header == SET_COOKIE)
.
How about SET_COOKIE2
(I'm ok to not consider it, just raising the issue of whether we want to explicitly not consider it).
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.
Set-Cookie2
is an actual header from a valid spec.
https://tools.ietf.org/html/rfc2965
Signed-off-by: Jan Bartel <janb@webtide.com>
Closes #4825
Implement spec for javax.servlet.http.PushBuilder according to the javadoc, and as tested for by the tck.