summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/http/http.hpp
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-09-07 01:40:04 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-09-07 01:40:04 +0000
commit8a21fca095cf96601db69cb719e7f94b73bc7744 (patch)
treee26cc102b5e75d62a631b01fd1a52633137d0f0e /sca-cpp/trunk/modules/http/http.hpp
parentf75296a86350e41c01a355c945ca348082260cf9 (diff)
Minor tweaks to make the OAuth support work with Github.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@993192 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/http/http.hpp')
-rw-r--r--sca-cpp/trunk/modules/http/http.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-cpp/trunk/modules/http/http.hpp b/sca-cpp/trunk/modules/http/http.hpp
index 1932ac3420..db860aeee2 100644
--- a/sca-cpp/trunk/modules/http/http.hpp
+++ b/sca-cpp/trunk/modules/http/http.hpp
@@ -419,7 +419,7 @@ const failable<value> get(const string& url, const CURLSession& cs) {
debug(val, "http::get::result");
return val;
}
- if (contains(ct, "text/javascript") || contains(ct, "application/json-rpc")) {
+ if (contains(ct, "text/javascript") || contains(ct, "application/json")) {
json::JSONContext cx;
const value val(json::jsonValues(content(json::readJSON(ls, cx))));
debug(val, "http::get::result");