Skip to content

Commit c6569f2

Browse files
committed
Small cleanup in FileStreamer
1 parent 23e3b5a commit c6569f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,13 @@ private Mono<Void> handleFileDownloadRequest(
262262
throw new RuntimeException("Wrong qualifier: " + qualifier);
263263
}
264264

265-
final var fileName = map.get("name");
265+
final var filename = map.get("name");
266266
final var statusCode = toStatusCode(signal);
267267

268268
if (statusCode != HttpResponseStatus.OK.code()) {
269269
return response
270270
.status(statusCode)
271-
.sendString(Mono.just(errorMessage(statusCode, fileName)))
271+
.sendString(Mono.just(errorMessage(statusCode, filename)))
272272
.then();
273273
}
274274

@@ -283,7 +283,7 @@ private Mono<Void> handleFileDownloadRequest(
283283

284284
return response
285285
.header("Content-Type", "application/octet-stream")
286-
.header("Content-Disposition", "attachment; filename=" + fileName)
286+
.header("Content-Disposition", "attachment; filename=" + filename)
287287
.send(responseFlux)
288288
.then();
289289
})

0 commit comments

Comments
 (0)