Content-Length добавлен
This commit is contained in:
@@ -34,6 +34,7 @@ public class FilesResource {
|
||||
File target = resolved.toFile();
|
||||
return Response.ok(target)
|
||||
.header("Content-Disposition", "attachment; filename=\"" + target.getName() + "\"")
|
||||
.header("Content-Length", target.length())
|
||||
.build();
|
||||
}
|
||||
|
||||
@@ -50,6 +51,7 @@ public class FilesResource {
|
||||
File target = resolved.toFile();
|
||||
return Response.ok(target)
|
||||
.header("Content-Disposition", "attachment; filename=\"" + target.getName() + "\"")
|
||||
.header("Content-Length", target.length())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user