Polish contracts

This commit is contained in:
Stephane Maldini 2016-04-16 01:05:30 +01:00
parent 9a4b98d2e9
commit 0a3396c5b2
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ public class ReactorClientHttpResponse implements ClientHttpResponse {
@Override
public HttpHeaders getHeaders() {
HttpHeaders headers = new HttpHeaders();
this.channel.headers().entries().stream().forEach(e -> headers.add(e.getKey(), e.getValue()));
this.channel.responseHeaders().entries().stream().forEach(e -> headers.add(e.getKey(), e.getValue()));
return headers;
}