Mercurial > hg > orthanc
changeset 4487:c06659885362
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 29 Jan 2021 07:32:48 +0100 |
parents | 83a6a84ba9df |
children | 50b3f4c8107e |
files | OrthancServer/Sources/OrthancConfiguration.cpp |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancConfiguration.cpp Thu Jan 28 19:36:13 2021 +0100 +++ b/OrthancServer/Sources/OrthancConfiguration.cpp Fri Jan 29 07:32:48 2021 +0100 @@ -978,11 +978,7 @@ static const char* const ACCEPTED_TRANSFER_SYNTAXES = "AcceptedTransferSyntaxes"; - if (json_.type() != Json::objectValue) - { - throw OrthancException(ErrorCode_InternalError); - } - else if (json_.isMember(ACCEPTED_TRANSFER_SYNTAXES)) + if (json_.isMember(ACCEPTED_TRANSFER_SYNTAXES)) { ParseAcceptedTransferSyntaxes(target, json_[ACCEPTED_TRANSFER_SYNTAXES]); }