diff options
author | Ed Tanous <ed.tanous@intel.com> | 2018-03-28 20:29:31 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2018-04-22 21:17:10 +0300 |
commit | 15aab54434e8873a26e1c017401b0ba111663b65 (patch) | |
tree | e0b80244fb525be28792ca9994b81526166ad2f1 /include | |
parent | 1ea9f063b6472271336bf225665aea4dc17c7d77 (diff) | |
download | bmcweb-15aab54434e8873a26e1c017401b0ba111663b65.tar.xz |
Fix an issue with directory permissions
directory includes need to manage both the routes, just just the one
ending in slash
Change-Id: I1ba0e9021b212e88861aa720bb5a9d7610b72a9c
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/webassets.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/webassets.hpp b/include/webassets.hpp index fb5b66c333..6384f3abc3 100644 --- a/include/webassets.hpp +++ b/include/webassets.hpp @@ -77,6 +77,8 @@ void request_routes(Crow<Middlewares...>& app) { if (boost::starts_with(webpath.filename().string(), "index.")) { webpath = webpath.parent_path(); if (webpath.string().size() == 0 || webpath.string().back() != '/') { + // insert the non-directory version of this path + routes.insert(webpath); webpath += "/"; } } |