Skip to content

Commit

Permalink
#2016 - Switch to UriComponentsBuilder.fromUri(…).
Browse files Browse the repository at this point in the history
  • Loading branch information
odrotbohm committed Jul 14, 2023
1 parent 5f588b4 commit 36048f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public static Mono<CurrentRequest> of(@Nullable ServerWebExchange exchange) {
ServerHttpRequest request = exchange.getRequest();
PathContainer contextPath = request.getPath().contextPath();

result.builder = UriComponentsBuilder.fromHttpRequest(request) //
result.builder = UriComponentsBuilder.fromUri(request.getURI()) //
.replacePath(contextPath.toString()) //
.replaceQuery("");

Expand Down

0 comments on commit 36048f2

Please sign in to comment.