Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestApi.cpp Tue Oct 30 10:46:17 2018 +0100 +++ b/OrthancServer/OrthancRestApi/OrthancRestApi.cpp Tue Oct 30 11:55:23 2018 +0100 @@ -88,14 +88,14 @@ { OrthancRestApi::GetApi(call).leaveBarrier_ = true; OrthancRestApi::GetApi(call).resetRequestReceived_ = true; - call.GetOutput().AnswerBuffer("{}", "application/json"); + call.GetOutput().AnswerBuffer("{}", MIME_JSON); } void OrthancRestApi::ShutdownOrthanc(RestApiPostCall& call) { OrthancRestApi::GetApi(call).leaveBarrier_ = true; - call.GetOutput().AnswerBuffer("{}", "application/json"); + call.GetOutput().AnswerBuffer("{}", MIME_JSON); LOG(WARNING) << "Shutdown request received"; }