Polish reactor-ipc/netty contracts

This commit is contained in:
Stephane Maldini 2016-04-17 14:50:20 +01:00
parent 0a3396c5b2
commit ad9d8c28fe
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ public class ReactorClientHttpRequest extends AbstractClientHttpRequest {
}) })
.after(() -> { .after(() -> {
if (body != null) { if (body != null) {
return channel.sendBody(body); return channel.send(body);
} }
else { else {
return channel.sendHeaders(); return channel.sendHeaders();

View File

@ -50,7 +50,7 @@ public class ReactorClientHttpResponse implements ClientHttpResponse {
@Override @Override
public Flux<DataBuffer> getBody() { public Flux<DataBuffer> getBody() {
return channel.receiveBody().map(b -> allocator.wrap(b.byteBuffer())); return channel.receive().map(b -> allocator.wrap(b.byteBuffer()));
} }
@Override @Override