Skip to content

Commit 43650cc

Browse files
committed
Fixed Filedownload tests
1 parent 93f797d commit 43650cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services-gateway/src/main/java/io/scalecube/services/gateway/http/HttpGatewayAcceptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public Publisher<Void> apply(HttpServerRequest httpRequest, HttpServerResponse h
7575
.defaultIfEmpty(Unpooled.EMPTY_BUFFER)
7676
.map(ByteBuf::retain)
7777
.flatMap(content -> handleRequest(content, httpRequest, httpResponse))
78-
.onErrorResume(t -> error(httpResponse, errorMapper.toMessage(ERROR_NAMESPACE, t)));
78+
.onErrorResume(ex -> error(httpResponse, errorMapper.toMessage(ERROR_NAMESPACE, ex)));
7979
}
8080

8181
private Mono<Void> handleRequest(
@@ -197,7 +197,7 @@ private Mono<Void> handleFileRequest(
197197
ServiceReference service, ServiceMessage message, HttpServerResponse response) {
198198
return serviceCall
199199
.router(
200-
StaticAddressRouter.from(service.address()).serviceName(service.endpointId()).build())
200+
StaticAddressRouter.from(service.address()).serviceName(service.endpointName()).build())
201201
.requestMany(message)
202202
.switchOnFirst(
203203
(signal, flux) -> {

0 commit comments

Comments
 (0)