Skip to content

Commit

Permalink
Remove unnecessary headers in export-mets-web
Browse files Browse the repository at this point in the history
  • Loading branch information
joschrew committed Jun 17, 2024
1 parent 76ddebf commit 5a957df
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,7 @@ public ResponseEntity<StreamingResponseBody> exportMetsfileUrlpaths(
}
};

return ResponseEntity.ok().contentType(MediaType.parseMediaType("text/xml"))
.header(HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS, HttpHeaders.CONTENT_DISPOSITION)
.header(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=mets.xml").body(stream);
return ResponseEntity.ok().contentType(MediaType.parseMediaType("text/xml")).body(stream);
}

/**
Expand Down

0 comments on commit 5a957df

Please sign in to comment.