changeset 354:4d76fce206ef

fixes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Jan 2013 14:34:36 +0100
parents 61e4c62b8c35
children 753e69f9326e
files OrthancExplorer/explorer.js Resources/Samples/Python/RestToolbox.py
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancExplorer/explorer.js	Mon Jan 28 16:58:07 2013 +0100
+++ b/OrthancExplorer/explorer.js	Wed Jan 30 14:34:36 2013 +0100
@@ -832,7 +832,7 @@
           $.ajax({
             url: path + '/anonymize',
             type: 'POST',
-            data: '{}',
+            data: '{ "Keep" : [ "SeriesDescription", "StudyDescription" ] }',
             dataType: 'json',
             async: false,
             cache: false,
--- 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' }