Explorar o código

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

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Mihaela Balutoiu hai 1 semana
pai
achega
f4dc97c866
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/sources/EndpointSource.ts

+ 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;
   }