2
0
Эх сурвалжийг харах

Add `text/csv` header to fix VM inventory CSV newline escaping

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Mihaela Balutoiu 1 долоо хоног өмнө
parent
commit
f4dc97c866

+ 1 - 0
src/sources/EndpointSource.ts

@@ -311,6 +311,7 @@ class EndpointSource {
     const response = await Api.send({
       url: `${configLoader.config.servicesUrls.coriolis}/${Api.projectId}/endpoints/${endpointId}/inventory`,
       responseType: "text",
+      headers: { Accept: "text/csv" },
     });
     return response.data as string;
   }