Mercurial > hg > orthanc
diff Core/RestApi/RestApiHierarchy.cpp @ 1063:0332e6e8c679
Fix automated generation of the list of resource children in the REST API
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 25 Jul 2014 16:06:26 +0200 |
parents | f1ff2a2f06cd |
children | 6e7e5ed91c2d |
line wrap: on
line diff
--- a/Core/RestApi/RestApiHierarchy.cpp Fri Jul 25 14:51:18 2014 +0200 +++ b/Core/RestApi/RestApiHierarchy.cpp Fri Jul 25 16:06:26 2014 +0200 @@ -35,6 +35,7 @@ #include "../OrthancException.h" #include <cassert> +#include <stdio.h> namespace Orthanc { @@ -274,8 +275,7 @@ bool RestApiHierarchy::CanGenerateDirectory() const { - return (!handlers_.HasHandler(HttpMethod_Get) && - universalHandlers_.IsEmpty() && + return (universalHandlers_.IsEmpty() && wildcardChildren_.size() == 0); }