Skip to content

Commit bae7c3f

Browse files
committed
Only output refention headers in file lock enabled buckets
1 parent f4ee785 commit bae7c3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

b2sdk/raw_simulator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def as_download_headers(self, account_auth_token_or_none, range_=None):
215215
'x-bz-file-name': self.name,
216216
}
217217

218-
if account_auth_token_or_none is not None:
218+
if account_auth_token_or_none is not None and self.bucket.is_file_lock_enabled:
219219
not_permitted = []
220220

221221
if not self.is_allowed_to_read_file_retention(account_auth_token_or_none):

0 commit comments

Comments
 (0)