mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-27 09:39:04 +00:00
SPR-8809 - RestTemplate headers not sent when bufferRequestBody is false
This commit is contained in:
+2
-3
@@ -85,9 +85,8 @@ class InterceptingClientHttpRequest extends AbstractBufferingClientHttpRequest {
|
||||
|
||||
delegate.getHeaders().putAll(request.getHeaders());
|
||||
|
||||
if (body.length > 0) {
|
||||
FileCopyUtils.copy(body, delegate.getBody());
|
||||
}
|
||||
FileCopyUtils.copy(body, delegate.getBody());
|
||||
|
||||
return delegate.execute();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user