Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from Sammers21/fix_implementation
Browse files Browse the repository at this point in the history
remove DummySubscriber
  • Loading branch information
g4s8 authored Feb 18, 2020
2 parents 07faf1a + 7d2cdba commit b581a03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 77 deletions.
76 changes: 0 additions & 76 deletions src/main/java/com/artipie/vertx/DummySubscriber.java

This file was deleted.

3 changes: 2 additions & 1 deletion src/main/java/com/artipie/vertx/VertxSliceServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,13 @@ private Handler<HttpServerRequest> proxyHandler() {
for (final Map.Entry<String, String> header : headers) {
response.putHeader(header.getKey(), header.getValue());
}
response.setChunked(true);
Flowable.fromPublisher(FlowAdapters.toPublisher(body)).map(
buf -> {
final byte[] bytes = new byte[buf.remaining()];
buf.get(bytes);
return Buffer.buffer(bytes);
}).subscribe(new DummySubscriber(response));
}).subscribe(response.toSubscriber());
}
);
};
Expand Down

0 comments on commit b581a03

Please sign in to comment.