Mercurial > hg > orthanc
diff Core/RestApi/RestApi.cpp @ 2905:ae20fccdd867
refactoring mime types
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Oct 2018 11:55:23 +0100 |
parents | 878b59270859 |
children | 4e43e67f8ecf |
line wrap: on
line diff
--- a/Core/RestApi/RestApi.cpp Tue Oct 30 10:46:17 2018 +0100 +++ b/Core/RestApi/RestApi.cpp Tue Oct 30 11:55:23 2018 +0100 @@ -197,12 +197,12 @@ Toolbox::TokenizeString(accepted, it->second, ';'); for (size_t i = 0; i < accepted.size(); i++) { - if (accepted[i] == "application/xml") + if (accepted[i] == MIME_XML) { wrappedOutput.SetConvertJsonToXml(true); } - if (accepted[i] == "application/json") + if (accepted[i] == MIME_JSON) { wrappedOutput.SetConvertJsonToXml(false); }