diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-23 06:50:15 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-23 06:50:15 +0000 |
commit | 2faafb710633884260b070e1d4ed4ef46326612a (patch) | |
tree | deea4d9ecb9e799fcd28900a1b76c6c0bce01cbf /sca-cpp/trunk/modules/http/openauth.hpp | |
parent | 8f252e970a8b3584d3f566dba619b79d70b5efcf (diff) |
Support cookies over outgoing HTTP calls and a shorter component URL addressing scheme.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1126336 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/http/openauth.hpp')
-rw-r--r-- | sca-cpp/trunk/modules/http/openauth.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sca-cpp/trunk/modules/http/openauth.hpp b/sca-cpp/trunk/modules/http/openauth.hpp index 9b49cfa4c2..d7377324d9 100644 --- a/sca-cpp/trunk/modules/http/openauth.hpp +++ b/sca-cpp/trunk/modules/http/openauth.hpp @@ -63,9 +63,9 @@ const maybe<string> sessionID(const list<string> c) { } const maybe<string> sessionID(const request_rec* r) { - const char* c = apr_table_get(r->headers_in, "Cookie"); + const string c = httpd::cookie(r); debug(c, "openauth::sessionid::cookies"); - if (c == NULL) + if (length(c) == 0) return maybe<string>(); return sessionID(tokenize(";", c)); } |