Export flows functionality returns 404 error
### Describe the issue

To reproduce, try exporting flows: https://share.descript.com/view/f5NL85fdMp3

### Environment

- Kestra Version: develop
ui/src/stores/flow.js
ui/src/stores/flow.js
diff --git a/ui/src/stores/flow.js b/ui/src/stores/flow.js
index a720986f9f..57482ab2c7 100644
--- a/ui/src/stores/flow.js
+++ b/ui/src/stores/flow.js
@@ -218,7 +218,7 @@ export default {
                 });
         },
         exportFlowByQuery(_, options) {
-            return this.$http.get(`${apiUrl(this)}/flows/export/by-query`, {params: options})
+            return this.$http.get(`${apiUrl(this)}/flows/export/by-query`, {params: options, headers: {"Accept": "application/octet-stream"}})
                 .then(response => {
                     Utils.downloadUrl(response.request.responseURL, "flows.zip");
                 });
