- 
                Notifications
    You must be signed in to change notification settings 
- Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug
Milestone
Description
Andy Wilkinson opened SPR-15201 and commented
In the latest 5.0.0 snapshots, RestTemplate has started dropping a trailing / when the URI is passed in as a String. For example, a request to http://localhost:8080/spring/ will become a request to http://localhost:8080/spring.
The loss of the / happens during variable expansion so I think that this commit may have introduced the problem. A workaround is to pass a URI into RestTemplate rather than a String so that expansion does not occur.
Affects: 5.0 M5
Issue Links:
- Provide convenient ways to specify query parameters to WebClient [SPR-15124] #19691 Provide convenient ways to specify query parameters to WebClient
Referenced from: commits b487ed6
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug