PMCORE-619

This commit is contained in:
Paula Quispe
2022-02-03 10:18:41 -04:00
parent 6e66cab332
commit fd6886b6f4

View File

@@ -204,7 +204,7 @@ class Project extends Api
\G::auditLog('ExportProcess','Export process "' . $granularExporter->getProjectName() . '"'); \G::auditLog('ExportProcess','Export process "' . $granularExporter->getProjectName() . '"');
$httpStream->loadFromFile($outputFilename); $httpStream->loadFromFile($outputFilename);
$httpStream->setHeader("Content-Type", "application/xml; charset=UTF-8"); $httpStream->setHeader("Content-Type", "application/$fileExtension");
$httpStream->send(); $httpStream->send();
} }
@@ -232,7 +232,7 @@ class Project extends Api
\G::auditLog('ExportProcess','Export process "' . $exporter->getProjectName() . '"'); \G::auditLog('ExportProcess','Export process "' . $exporter->getProjectName() . '"');
$httpStream->loadFromFile($outputFilename); $httpStream->loadFromFile($outputFilename);
$httpStream->setHeader("Content-Type", "application/xml; charset=UTF-8"); $httpStream->setHeader("Content-Type", "application/$fileExtension");
$httpStream->send(); $httpStream->send();
} }