diff options
Diffstat (limited to 'http/utility.hpp')
-rw-r--r-- | http/utility.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/http/utility.hpp b/http/utility.hpp index d4b9b67421..78570169e4 100644 --- a/http/utility.hpp +++ b/http/utility.hpp @@ -660,6 +660,13 @@ inline bool readUrlSegments(const boost::urls::url_view& urlView, } it++; } + + // There will be an empty segment at the end if the URI ends with a "/" + // e.g. /redfish/v1/Chassis/ + if ((it != end) && urlSegments.back().empty()) + { + it++; + } return it == end; } |