From 15b2be158ac0147982dd30382251b3ce83e219c7 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Mon, 11 May 2020 19:46:30 +0200 Subject: Generate download link for files --- response.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'response.cpp') diff --git a/response.cpp b/response.cpp index a6f55e2..706090e 100644 --- a/response.cpp +++ b/response.cpp @@ -37,6 +37,8 @@ public: { } + // GetTarget() == GetPluginPath() + GetRelativePath() + const Path& GetPath() const {return m_path;} std::string GetPluginName() const {return m_path.params.at("plugin");} // can throw std::out_of_range @@ -146,7 +148,7 @@ std::unordered_map> Get {"rel_target", [](RequestContext& req_ctx) {return req_ctx.GetRelativePath();}}, - {"target", [](RequestContext& req_ctx) {return req_ctx.GetTarget();}}, + {"target", [](RequestContext& req_ctx) {return req_ctx.GetTarget();}}, // target == plugin_path / rel_target }; std::string GetRequestParam(const std::string& key, RequestContext& req_ctx) -- cgit v1.2.3