Mercurial > hg > orthanc
changeset 2118:9cf176bc21ad
Content-Type for JSON documents is now "application/json; charset=utf-8"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 02 Nov 2016 12:16:03 +0100 |
parents | 87b395a77c41 |
children | e0517f25919e |
files | Core/RestApi/RestApiOutput.cpp NEWS |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Core/RestApi/RestApiOutput.cpp Mon Oct 31 16:17:15 2016 +0100 +++ b/Core/RestApi/RestApiOutput.cpp Wed Nov 02 12:16:03 2016 +0100 @@ -94,7 +94,7 @@ #if ORTHANC_PUGIXML_ENABLED == 1 std::string s; Toolbox::JsonToXml(s, value); - output_.SetContentType("application/xml"); + output_.SetContentType("application/xml; charset=utf-8"); output_.Answer(s); #else LOG(ERROR) << "Orthanc was compiled without XML support"; @@ -104,7 +104,7 @@ else { Json::StyledWriter writer; - output_.SetContentType("application/json"); + output_.SetContentType("application/json; charset=utf-8"); output_.Answer(writer.write(value)); }
--- a/NEWS Mon Oct 31 16:17:15 2016 +0100 +++ b/NEWS Wed Nov 02 12:16:03 2016 +0100 @@ -27,6 +27,7 @@ * Performance warning if runtime debug assertions are turned on * Improved robustness against files with no PatientID * Upgrade to curl 7.50.3 for static and Windows builds +* Content-Type for JSON documents is now "application/json; charset=utf-8" Version 1.1.0 (2016/06/27)