mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
Fix ZIP download so that file extension remains .yaml
This commit is contained in:
@@ -730,7 +730,7 @@ public class FlowController {
|
||||
var flows = ids.stream()
|
||||
.map(id -> flowRepository.findByIdWithSource(tenantService.resolveTenant(), id.getNamespace(), id.getId()).orElseThrow())
|
||||
.toList();
|
||||
var bytes = HasSource.asZipFile(flows, flow -> flow.getNamespace() + "." + flow.getId() + ".yml");
|
||||
var bytes = HasSource.asZipFile(flows, flow -> flow.getNamespace() + "." + flow.getId() + ".yaml");
|
||||
return HttpResponse.ok(bytes).header("Content-Disposition", "attachment; filename=\"flows.zip\"");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user