You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/01/16 09:54:19 UTC

(camel) branch transform-content-type-azure-storage-blob created (now fbdfdfc77b5)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch transform-content-type-azure-storage-blob
in repository https://gitbox.apache.org/repos/asf/camel.git


      at fbdfdfc77b5 Azure Storage Blob cloudevents data type does not set proper data Content-Type

This branch includes the following new commits:

     new fbdfdfc77b5 Azure Storage Blob cloudevents data type does not set proper data Content-Type

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel) 01/01: Azure Storage Blob cloudevents data type does not set proper data Content-Type

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch transform-content-type-azure-storage-blob
in repository https://gitbox.apache.org/repos/asf/camel.git

commit fbdfdfc77b5c58f188156351779d823f76bfebb3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 16 10:48:19 2024 +0100

    Azure Storage Blob cloudevents data type does not set proper data Content-Type
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../blob/transform/AzureStorageBlobCloudEventDataTypeTransformer.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git a/components/camel-azure/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/transform/AzureStorageBlobCloudEventDataTypeTransformer.java b/components/camel-azure/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/transform/AzureStorageBlobCloudEventDataTypeTransformer.java
index de1f7d0d609..021f7c84cfa 100644
--- a/components/camel-azure/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/transform/AzureStorageBlobCloudEventDataTypeTransformer.java
+++ b/components/camel-azure/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/transform/AzureStorageBlobCloudEventDataTypeTransformer.java
@@ -50,5 +50,6 @@ public class AzureStorageBlobCloudEventDataTypeTransformer extends Transformer {
 
         headers.put(CloudEvents.CAMEL_CLOUD_EVENT_SUBJECT, message.getHeader(BlobConstants.BLOB_NAME, String.class));
         headers.put(CloudEvents.CAMEL_CLOUD_EVENT_TIME, cloudEvent.getEventTime(message.getExchange()));
+        headers.put(CloudEvents.CAMEL_CLOUD_EVENT_CONTENT_TYPE, CloudEvents.APPLICATION_OCTET_STREAM_MIME_TYPE);
     }
 }