Skip to content

Commit f4dc97c

Browse files
mihaelabalutoiuDany9966
authored andcommitted
Add text/csv header to fix VM inventory CSV newline escaping
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
1 parent bdd1f16 commit f4dc97c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/sources/EndpointSource.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ class EndpointSource {
311311
const response = await Api.send({
312312
url: `${configLoader.config.servicesUrls.coriolis}/${Api.projectId}/endpoints/${endpointId}/inventory`,
313313
responseType: "text",
314+
headers: { Accept: "text/csv" },
314315
});
315316
return response.data as string;
316317
}

0 commit comments

Comments
 (0)