Skip to content

Conversation

@bergerst
Copy link

@bergerst bergerst commented Jan 4, 2023

Fixes #2129

I'm not sure if another method for exposing the original request's cookies is necessary. Otherwise users have to use reflection to read them.

Should probably also be cherry-picked into 3.1.xx.

@nateridderman
Copy link

👍🏻 I would love to see this

public String path() {
return (String) this.webRequest.getAttribute(HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE,
WebRequest.SCOPE_REQUEST);
return exchange.getRequest().getPath().pathWithinApplication().value();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no exchange in spring mvc, this doesn't even compile

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was at the time I opened this MR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Server Web exchange is from spring webflux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ProxyExchange.uri() removes query string in original request

4 participants