diff Core/Lua/LuaContext.cpp @ 1606:31f4adefb88f

issuing HTTP requests from the plugin SDK
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 01 Sep 2015 17:37:26 +0200
parents f2e3d030ea59
children 54bafe0e7e7b
line wrap: on
line diff
--- a/Core/Lua/LuaContext.cpp	Tue Sep 01 16:41:16 2015 +0200
+++ b/Core/Lua/LuaContext.cpp	Tue Sep 01 17:37:26 2015 +0200
@@ -241,11 +241,11 @@
 
     if (nArgs >= 2)
     {
-      that.httpClient_.SetPostData(lua_tostring(state, 2));
+      that.httpClient_.SetBody(lua_tostring(state, 2));
     }
     else
     {
-      that.httpClient_.AccessPostData().clear();
+      that.httpClient_.GetBody().clear();
     }
 
     // Do the HTTP POST/PUT request