RED-7962 Changed response type to "text/plain; charset=utf-8" #236

Merged
kresnadi.budisantoso merged 4 commits from RED-7962 into master 2023-11-30 12:40:17 +01:00
Showing only changes of commit 9d84085d46 - Show all commits

View File

@ -141,7 +141,7 @@ public class RulesController implements RulesResource {
public ResponseEntity<?> downloadFile(@PathVariable(DOSSIER_TEMPLATE_PARAMETER_NAME) String dossierTemplateId,
@PathVariable(RULE_FILE_TYPE_PARAMETER_NAME) RuleFileType ruleFileType) {
byte[] data = download(dossierTemplateId).getRules().getBytes(StandardCharsets.UTF_8);
byte[] data = download(dossierTemplateId, ruleFileType).getRules().getBytes(StandardCharsets.UTF_8);
HttpHeaders httpHeaders = new HttpHeaders();
httpHeaders.setContentType(MediaType.TEXT_PLAIN);