seropian commented on code in PR #2409:
URL: https://github.com/apache/jackrabbit-oak/pull/2409#discussion_r2435622537


##########
oak-blob-cloud-azure/src/main/java/org/apache/jackrabbit/oak/blob/cloud/azure/blobstorage/AzureBlobStoreBackend.java:
##########
@@ -874,25 +819,19 @@ URI createHttpDownloadURI(@NotNull DataIdentifier 
identifier,
                 }
 
                 String key = getKeyName(identifier);
-                SharedAccessBlobHeaders headers = new 
SharedAccessBlobHeaders();
-                headers.setCacheControl(String.format("private, max-age=%d, 
immutable", httpDownloadURIExpirySeconds));
 
-                String contentType = downloadOptions.getContentTypeHeader();
-                if (! StringUtils.isEmpty(contentType)) {
-                    headers.setContentType(contentType);
-                }
-
-                String contentDisposition =
-                        downloadOptions.getContentDispositionHeader();
-                if (! StringUtils.isEmpty(contentDisposition)) {
-                    headers.setContentDisposition(contentDisposition);
-                }
+                // Prepare headers for the presigned URI
+                BlobSasHeaders headers = new BlobSasHeaders()
+                        .setCacheControl(String.format("private, max-age=%d, 
immutable", httpDownloadURIExpirySeconds))
+                        .setContentType(downloadOptions.getContentTypeHeader())

Review Comment:
   
`com.azure.storage.blob.specialized.BlobAsyncClientBase#generateSas(com.azure.storage.blob.sas.BlobServiceSasSignatureValues,
 com.azure.core.util.Context)`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to