Skip to content

Commit

Permalink
Update task.py get_custom_headers missing 'compression' key (#8633)
Browse files Browse the repository at this point in the history
  • Loading branch information
auvipy committed Nov 19, 2023
1 parent 709c5e7 commit ca1dfbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion celery/app/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __init__(self, *args, **kwargs):
def _get_custom_headers(self, *args, **kwargs):
headers = {}
headers.update(*args, **kwargs)
celery_keys = {*Context.__dict__.keys(), 'lang', 'task', 'argsrepr', 'kwargsrepr'}
celery_keys = {*Context.__dict__.keys(), 'lang', 'task', 'argsrepr', 'kwargsrepr', 'compression'}
for key in celery_keys:
headers.pop(key, None)
if not headers:
Expand Down

0 comments on commit ca1dfbd

Please sign in to comment.