Skip to content

Commit

Permalink
Merge pull request #3 from slovensko-digital/default-to-autoload
Browse files Browse the repository at this point in the history
Default autoLoadEform to true
  • Loading branch information
celuchmarek authored Jun 17, 2024
2 parents 0d47999 + 21302d8 commit d0a3875
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ private static SigningParameters buildParameters(SignatureLevel level, ASiCConta
if (isAsice(document.getMimeType()))
extractedDocument = AsicContainerUtils.getOriginalDocument(document);

if (transformation == null && (isXML(extractedDocument.getMimeType()) || isXDC(extractedDocument.getMimeType())))
autoLoadEform = true;

if (isXML(extractedDocument.getMimeType()) && XDCValidator.isXDCContent(extractedDocument))
extractedDocument.setMimeType(XML_DATACONTAINER);

Expand Down

0 comments on commit d0a3875

Please sign in to comment.