File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -87,10 +87,10 @@ def to_binary(
87
87
)
88
88
89
89
headers = {}
90
- if event ["content-type " ]:
91
- headers ["content-type " ] = event ["content-type " ].encode ("utf-8" )
90
+ if event ["datacontenttype " ]:
91
+ headers ["datacontenttype " ] = event ["datacontenttype " ].encode ("utf-8" )
92
92
for attr , value in event .get_attributes ().items ():
93
- if attr not in ["data" , "partitionkey" , "content-type " ]:
93
+ if attr not in ["data" , "partitionkey" , "datacontenttype " ]:
94
94
if value is not None :
95
95
headers ["ce_{0}" .format (attr )] = value .encode ("utf-8" )
96
96
@@ -189,8 +189,8 @@ def to_structured(
189
189
attrs ["data" ] = data
190
190
191
191
headers = {}
192
- if "content-type " in attrs :
193
- headers ["content-type " ] = attrs .pop ("content-type " ).encode ("utf-8" )
192
+ if "datacontenttype " in attrs :
193
+ headers ["datacontenttype " ] = attrs .pop ("datacontenttype " ).encode ("utf-8" )
194
194
195
195
try :
196
196
value = envelope_marshaller (attrs )
You can’t perform that action at this time.
0 commit comments