Mercurial > hg > orthanc
diff Resources/Samples/Python/RestToolbox.py @ 354:4d76fce206ef
fixes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Jan 2013 14:34:36 +0100 |
parents | 107da6a8c630 |
children | 76bc8770741b |
line wrap: on
line diff
--- a/Resources/Samples/Python/RestToolbox.py Mon Jan 28 16:58:07 2013 +0100 +++ b/Resources/Samples/Python/RestToolbox.py Wed Jan 30 14:34:36 2013 +0100 @@ -38,6 +38,8 @@ body = data if len(contentType) != 0: headers = { 'content-type' : contentType } + else: + headers = { 'content-type' : 'text/plain' } else: body = json.dumps(data) headers = { 'content-type' : 'application/json' }