Skip to content

Commit c1e6e3e

Browse files
committed
fix test
1 parent a836b81 commit c1e6e3e

File tree

4 files changed

+611
-10
lines changed

4 files changed

+611
-10
lines changed

x-pack/legacy/plugins/reporting/server/routes/lib/get_document_payload.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,10 @@ export function getDocumentPayloadFactory(
6565
const exportType = exportTypesRegistry.get((item: ExportTypeType) => item.jobType === jobType);
6666
const filename = getTitle(exportType, title);
6767
const headers = getReportingHeaders(output, exportType);
68-
const content = encodeContent(output.content, exportType);
6968

7069
return {
7170
statusCode: 200,
72-
content,
71+
content: encodeContent(output.content, exportType),
7372
contentType: output.content_type,
7473
headers: {
7574
...headers,

0 commit comments

Comments
 (0)