mirror of https://github.com/celery/kombu.git
Fixed a compatibility issue with other clients not sending application headers
This commit is contained in:
parent
32865beb4a
commit
465c062e89
|
@ -148,14 +148,15 @@ class Message(base.Message):
|
|||
"""
|
||||
|
||||
def __init__(self, channel, msg, **kwargs):
|
||||
props = msg.properties
|
||||
super(Message, self).__init__(channel,
|
||||
body=msg.body,
|
||||
delivery_tag=msg.delivery_tag,
|
||||
content_type=msg.content_type,
|
||||
content_encoding=msg.content_encoding,
|
||||
content_type=props.get("content_type"),
|
||||
content_encoding=props.get("content_encoding"),
|
||||
delivery_info=msg.delivery_info,
|
||||
properties=msg.properties,
|
||||
headers=msg.application_headers,
|
||||
headers=props.get("application_headers"),
|
||||
**kwargs)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue