xx 1 год назад
Родитель
Сommit
a41f80f226
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/module/http/response.cpp
  2. 1 1
      src/module/http/response.h

+ 1 - 1
src/module/http/response.cpp

@@ -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;

+ 1 - 1
src/module/http/response.h

@@ -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;