diff OrthancServer/ServerContext.cpp @ 696:4c1860179cc5

dictionary of user-defined content types
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Feb 2014 15:00:29 +0100
parents c59bc408fb10
children dd1ce9a2844c
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp	Wed Feb 05 13:58:00 2014 +0100
+++ b/OrthancServer/ServerContext.cpp	Wed Feb 05 15:00:29 2014 +0100
@@ -116,7 +116,7 @@
     }      
 
     FileInfo dicomInfo = accessor_.Write(dicomInstance, dicomSize, FileContentType_Dicom);
-    FileInfo jsonInfo = accessor_.Write(dicomJson.toStyledString(), FileContentType_Json);
+    FileInfo jsonInfo = accessor_.Write(dicomJson.toStyledString(), FileContentType_JsonSummary);
 
     ServerIndex::Attachments attachments;
     attachments.push_back(dicomInfo);
@@ -176,7 +176,7 @@
                                const std::string& instancePublicId)
   {
     std::string s;
-    ReadFile(s, instancePublicId, FileContentType_Json);
+    ReadFile(s, instancePublicId, FileContentType_JsonSummary);
 
     Json::Reader reader;
     if (!reader.parse(s, result))