Fix remote file cannot be fetched

This commit is contained in:
Tindy X committed 2021-12-15 12:00:57 +08:00
1 parent a4988804d4
commit a24be60d78
2 files changed
+1 -3

No files matched your search

+1 -1
View File
@@ -220,7 +220,7 @@ int render_template(const std::string &content, const template_args &vars, std::
{
return std::to_string(args.at(0)->get<int>());
});
#ifdef NO_WEBGET
#ifndef NO_WEBGET
env.add_callback("fetch", 1, template_webGet);
#endif // NO_WEBGET
//env.add_callback("parseHostname", 1, parseHostname);