summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2009-11-20 11:00:06 +0000
committerGordon Sim <gsim@apache.org>2009-11-20 11:00:06 +0000
commitf8de64c061a1995053f383932837a4c057d78967 (patch)
tree12e7da52fe2ee999c54cbd016e8c2aa86c932f46 /qpid/python
parentcdf3554ea35bbac57e09092e81e574b9d0673f22 (diff)
downloadqpid-python-f8de64c061a1995053f383932837a4c057d78967.tar.gz
Handle empty (rather than null) content type as sent by c++ client
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@882498 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/messaging.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/python/qpid/messaging.py b/qpid/python/qpid/messaging.py
index 703a958425..c351f0d584 100644
--- a/qpid/python/qpid/messaging.py
+++ b/qpid/python/qpid/messaging.py
@@ -725,6 +725,7 @@ TYPE_CODEC={
"amqp/map": codec("map"),
"amqp/list": codec("list"),
"text/plain; charset=utf8": (lambda x: x.encode("utf8"), lambda x: x.decode("utf8")),
+ "": (lambda x: x, lambda x: x),
None: (lambda x: x, lambda x: x)
}