Ver código fonte

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

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Mihaela Balutoiu 1 semana atrás
pai
commit
f4dc97c866
1 arquivos alterados com 1 adições e 0 exclusões
  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;
   }