comparison OrthancServer/OrthancRestApi/OrthancRestApi.cpp @ 2905:ae20fccdd867

refactoring mime types
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Oct 2018 11:55:23 +0100
parents 5dd649de253d
children 9d277f8ad698
comparison
equal deleted inserted replaced
2904:0dd54ee073db 2905:ae20fccdd867
86 86
87 void OrthancRestApi::ResetOrthanc(RestApiPostCall& call) 87 void OrthancRestApi::ResetOrthanc(RestApiPostCall& call)
88 { 88 {
89 OrthancRestApi::GetApi(call).leaveBarrier_ = true; 89 OrthancRestApi::GetApi(call).leaveBarrier_ = true;
90 OrthancRestApi::GetApi(call).resetRequestReceived_ = true; 90 OrthancRestApi::GetApi(call).resetRequestReceived_ = true;
91 call.GetOutput().AnswerBuffer("{}", "application/json"); 91 call.GetOutput().AnswerBuffer("{}", MIME_JSON);
92 } 92 }
93 93
94 94
95 void OrthancRestApi::ShutdownOrthanc(RestApiPostCall& call) 95 void OrthancRestApi::ShutdownOrthanc(RestApiPostCall& call)
96 { 96 {
97 OrthancRestApi::GetApi(call).leaveBarrier_ = true; 97 OrthancRestApi::GetApi(call).leaveBarrier_ = true;
98 call.GetOutput().AnswerBuffer("{}", "application/json"); 98 call.GetOutput().AnswerBuffer("{}", MIME_JSON);
99 LOG(WARNING) << "Shutdown request received"; 99 LOG(WARNING) << "Shutdown request received";
100 } 100 }
101 101
102 102
103 103