-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Issue #4713 Async dispatch with query. #4721
Conversation
+ Preserve the entire URI with query when startAsync(req,res) is used. + merge any query string from dispatch path with either original query or preserved query from forward Signed-off-by: Greg Wilkins <gregw@webtide.com>
The main change was in two places: In In |
jetty-server/src/main/java/org/eclipse/jetty/server/AsyncContextEvent.java
Outdated
Show resolved
Hide resolved
@@ -2165,7 +2168,7 @@ public AsyncContext startAsync() throws IllegalStateException | |||
HttpChannelState state = getHttpChannelState(); | |||
if (_async == null) | |||
_async = new AsyncContextState(state); | |||
AsyncContextEvent event = new AsyncContextEvent(_context, _async, state, this, this, getResponse()); | |||
AsyncContextEvent event = new AsyncContextEvent(_context, _async, state, this, this, getResponse(), false); |
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.
I wonder if you shouldn't keep the old constructor here, and not use an extra boolean argument.
jetty-server/src/main/java/org/eclipse/jetty/server/Request.java
Outdated
Show resolved
Hide resolved
I added a few nitpicking comments, but overall I get what this change is about and it LGTM. |
Signed-off-by: Greg Wilkins <gregw@webtide.com>
Ah @lorban can't give me the green tick (yet)! But I'll assume it anyway and merge! |
For issue #4713
Signed-off-by: Greg Wilkins gregw@webtide.com