Fix ZIP download so that file extension remains .yaml

This commit is contained in:
kkash08
2025-12-01 16:57:15 +00:00
committed by Loïc Mathieu
parent b0606a4380
commit 5b597b9520

View File

@@ -734,7 +734,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\"");
}