修复G++

This commit is contained in:
xx
2025-02-20 14:17:05 +08:00
parent 9a5c10e19f
commit b5b8fb06a1
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ void module::response::set(const std::string& name, const std::string& value)
m_sets[name] = value;
}
void module::response::sets(sol::table& lua_table)
void module::response::sets(const sol::table& lua_table)
{
auto parse_lua_table = [](const sol::table& table, const auto& self) -> std::map<std::string, std::string> {
std::map<std::string, std::string> result;

View File

@@ -20,7 +20,7 @@ namespace module
void header(const std::string& name, const std::string& value);
void set(const std::string& name,const std::string& value);
void sets(sol::table& lua_table);
void sets(const sol::table& lua_table);
static void regist(sol::state* lua);
private:
network::http::response* m_response = nullptr;