comparison OrthancServer/OrthancRestApi/OrthancRestApi.cpp @ 1572:904096e7367e

More information about the origin request in OnStoredInstance() callbacks
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 12:10:12 +0200
parents 1b7def486e62
children bc34c69b594a
comparison
equal deleted inserted replaced
1571:3232f1c995a5 1572:904096e7367e
82 82
83 // TODO Remove unneccessary memcpy 83 // TODO Remove unneccessary memcpy
84 std::string postData(call.GetBodyData(), call.GetBodySize()); 84 std::string postData(call.GetBodyData(), call.GetBodySize());
85 85
86 DicomInstanceToStore toStore; 86 DicomInstanceToStore toStore;
87 toStore.SetRestOrigin(call);
87 toStore.SetBuffer(postData); 88 toStore.SetBuffer(postData);
88 89
89 std::string publicId; 90 std::string publicId;
90 StoreStatus status = context.Store(publicId, toStore); 91 StoreStatus status = context.Store(publicId, toStore);
91 92