Skip to content

Commit a5f8d84

Browse files
committed
fix: correctly deserialize blob length
1 parent 6356f6f commit a5f8d84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure/functions/blob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def decode(cls, data: meta.Datum, *, trigger_metadata) -> Any:
113113
trigger_metadata, 'Properties', python_type=dict)
114114
if properties:
115115
blob_properties = properties
116-
length = properties.get('Length')
116+
length = properties.get('ContentLength')
117117
length = int(length) if length else None
118118
else:
119119
blob_properties = None

0 commit comments

Comments
 (0)