Fixed Lua bindings for const objects.

This commit is contained in:
Mattes D
2017-05-09 14:10:53 +02:00
committed by Lukas Pioch
parent 17ba5be852
commit 3d5ee3e5c7
4 changed files with 9 additions and 102 deletions
+1 -1
View File
@@ -1710,7 +1710,7 @@ public:
) override
{
AString content, contentType;
return m_Callback.Call(&a_Request, a_UrlPath, cLuaState::Return, a_Content, a_ContentType);
return m_Callback.Call(const_cast<HTTPRequest *>(&a_Request), a_UrlPath, cLuaState::Return, a_Content, a_ContentType);
}
};