changeset 813:b640aeee11ba

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 08 May 2014 15:15:55 +0200
parents 8a36c947490c
children aeee9cc66dd9
files OrthancServer/OrthancRestApi/OrthancRestModalities.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp	Thu May 08 14:51:49 2014 +0200
+++ b/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp	Thu May 08 15:15:55 2014 +0200
@@ -473,6 +473,7 @@
       RemoteModalityParameters modality;
       modality.FromJson(json);
       Configuration::UpdateModality(call.GetUriComponent("id", ""), modality);
+      call.GetOutput().AnswerBuffer("", "text/plain");
     }
   }
 
@@ -480,6 +481,7 @@
   static void DeleteModality(RestApi::DeleteCall& call)
   {
     Configuration::RemoveModality(call.GetUriComponent("id", ""));
+    call.GetOutput().AnswerBuffer("", "text/plain");
   }
 
 
@@ -492,6 +494,7 @@
       OrthancPeerParameters peer;
       peer.FromJson(json);
       Configuration::UpdatePeer(call.GetUriComponent("id", ""), peer);
+      call.GetOutput().AnswerBuffer("", "text/plain");
     }
   }
 
@@ -499,6 +502,7 @@
   static void DeletePeer(RestApi::DeleteCall& call)
   {
     Configuration::RemovePeer(call.GetUriComponent("id", ""));
+    call.GetOutput().AnswerBuffer("", "text/plain");
   }