summaryrefslogtreecommitdiff
path: root/include/webassets.hpp
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2017-11-08 02:32:12 +0300
committerEd Tanous <ed.tanous@intel.com>2017-11-08 02:32:12 +0300
commit746b22a2d73aa995dd434492b7f2b649db8c1c4d (patch)
treefdd1cf986ac0808bcd031a5fe8e25698a4d9c405 /include/webassets.hpp
parent038c52e00db22a49f7b94eb10a94b17a31e2ed3d (diff)
downloadbmcweb-746b22a2d73aa995dd434492b7f2b649db8c1c4d.tar.xz
Update crow to improve security
Change-Id: I86146edde21bac89e6cc30afdd79690e2b0adadd
Diffstat (limited to 'include/webassets.hpp')
-rw-r--r--include/webassets.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/webassets.hpp b/include/webassets.hpp
index 3afa61f6f0..6fd0d60f6b 100644
--- a/include/webassets.hpp
+++ b/include/webassets.hpp
@@ -87,7 +87,7 @@ void request_routes(Crow<Middlewares...>& app) {
}
}
}
- app.route_dynamic(std::string(webpath.string()))(
+ app.route_dynamic(webpath.string())(
[is_gzip, absolute_path_str, content_type](const crow::request& req,
crow::response& res) {
static const char* content_type_string = "Content-Type";