File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
services-gateway/src/main/java/io/scalecube/services/gateway/http Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 })
You can’t perform that action at this time.
0 commit comments