-
Notifications
You must be signed in to change notification settings - Fork 38.9k
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
Eberhard Wolff opened SPR-5536 and commented
If you call getForObject() on an RestTemplate it does not use HTTP GET. The reason is that SimpleClientHttpRequest calls FileCopyUtils.copy(bufferedOutput, this.connection.getOutputStream()); . On Mac OS X JDK 1.6 this connection is sun.net.www.protocol.http.HttpURLConnection and getOutputStream() contains this code:
if(method.equals("GET"))
method = "POST";
making it a POST.
Affects: 3.0 M2
Attachments:
- RestDoesNotDoGetTest.java (1.48 kB)
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