Mercurial > hg > orthanc
diff OrthancServer/OrthancRestApi/OrthancRestSystem.cpp @ 3401:962e5f00744b
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 07 Jun 2019 14:58:27 +0200 |
parents | fca730c267d7 |
children | f07352e0375c |
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Fri Jun 07 14:26:09 2019 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Fri Jun 07 14:58:27 2019 +0200 @@ -174,7 +174,10 @@ static void SetDefaultEncoding(RestApiPutCall& call) { - Encoding encoding = StringToEncoding(call.GetBodyData()); + std::string body; + call.BodyToString(body); + + Encoding encoding = StringToEncoding(body.c_str()); { OrthancConfiguration::WriterLock lock; @@ -453,7 +456,8 @@ { bool enabled; - std::string body(call.GetBodyData()); + std::string body; + call.BodyToString(body); if (body == "1") {