SPR-8809 - RestTemplate headers not sent when bufferRequestBody is false
This commit is contained in:
@@ -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