Merge "Use inferred=True by default"

This commit is contained in:
Jenkins 2015-06-16 09:49:22 +00:00 committed by Gerrit Code Review
commit a3a3c3faa8

View File

@ -46,7 +46,9 @@ LOG = logging.getLogger(__name__)
def marshal_response(reply=None, failure=None):
# TODO(grs): do replies have a context?
msg = proton.Message()
# NOTE(flaper87): Set inferred to True since rabbitmq-amqp-1.0 doesn't
# have support for vbin8.
msg = proton.Message(inferred=True)
if failure:
failure = common.serialize_remote_exception(failure)
data = {"failure": failure}
@ -67,7 +69,9 @@ def unmarshal_response(message, allowed):
def marshal_request(request, context, envelope):
msg = proton.Message()
# NOTE(flaper87): Set inferred to True since rabbitmq-amqp-1.0 doesn't
# have support for vbin8.
msg = proton.Message(inferred=True)
if envelope:
request = common.serialize_msg(request)
data = {