diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-12-08 03:52:21 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-12-08 03:52:21 +0000 |
commit | 2a70a69d92d1bd6071ff6ea76d724b458b4c2287 (patch) | |
tree | ddf28d01fbc256d858a4b1e323e5be6f082cbb81 /sca-cpp/trunk/modules/http/http.hpp | |
parent | 47017915e45f786265f5763ebf711abfe308738c (diff) |
Move JavaScript eval functions to the js module.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1043295 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/http/http.hpp')
-rw-r--r-- | sca-cpp/trunk/modules/http/http.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sca-cpp/trunk/modules/http/http.hpp b/sca-cpp/trunk/modules/http/http.hpp index b6ec9d4e5a..ad3ae84821 100644 --- a/sca-cpp/trunk/modules/http/http.hpp +++ b/sca-cpp/trunk/modules/http/http.hpp @@ -306,7 +306,7 @@ const failable<value> evalExpr(const value& expr, const string& url, const CURLS debug(expr, "http::evalExpr::input"); // Convert expression to a JSON-RPC request - json::JSONContext cx; + js::JSContext cx; const failable<list<string> > jsreq = json::jsonRequest(1, car<value>(expr), cdr<value>(expr), cx); if (!hasContent(jsreq)) return mkfailure<value>(reason(jsreq)); @@ -422,7 +422,7 @@ const failable<value> get(const string& url, const CURLSession& cs) { return val; } if (contains(ct, "text/javascript") || contains(ct, "application/json")) { - json::JSONContext cx; + js::JSContext cx; const value val(json::jsonValues(content(json::readJSON(ls, cx)))); debug(val, "http::get::result"); return val; |