comparison OrthancServer/LuaScripting.cpp @ 1441:f3672356c121

refactoring: IHttpHandler and HttpToolbox
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 01 Jul 2015 10:38:39 +0200
parents 3567503c00a7
children b2b09a3dbd8e
comparison
equal deleted inserted replaced
1440:3567503c00a7 1441:f3672356c121
78 } 78 }
79 79
80 const char* uri = lua_tostring(state, 1); 80 const char* uri = lua_tostring(state, 1);
81 81
82 std::string str; 82 std::string str;
83 if (restApi->SimpleGet(str, uri)) 83 if (HttpToolbox::SimpleGet(str, *restApi, uri))
84 { 84 {
85 lua_pushstring(state, str.c_str()); 85 lua_pushstring(state, str.c_str());
86 } 86 }
87 else 87 else
88 { 88 {