diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-12-29 07:24:32 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-12-29 07:24:32 +0000 |
commit | 2fedb4a4b67f7856bbfc5d1508524ef9c3d85942 (patch) | |
tree | db1669ec28075f3866ef5ab4e71eb57f4299bb40 /sca-cpp/trunk/modules/atom | |
parent | 788cba4bc8028279dcf8dcd1ac192f0ce078a971 (diff) |
Remove type=feed and type=entry parameters from application/atom+xml media types as they make IE 6's XMLHttpRequest hang.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1053559 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/atom')
-rw-r--r-- | sca-cpp/trunk/modules/atom/atom.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sca-cpp/trunk/modules/atom/atom.hpp b/sca-cpp/trunk/modules/atom/atom.hpp index 253be9bdd6..ff172170f7 100644 --- a/sca-cpp/trunk/modules/atom/atom.hpp +++ b/sca-cpp/trunk/modules/atom/atom.hpp @@ -66,6 +66,15 @@ const bool isATOMFeed(const list<string>& ls) { } /** + * Return true if a list of strings contains an ATOM entry. + */ +const bool isATOMEntry(const list<string>& ls) { + if (!isXML(ls)) + return false; + return contains(car(ls), "<entry") && !contains(car(ls), "<feed") && contains(car(ls), "=\"http://www.w3.org/2005/Atom\""); +} + +/** * Convert a list of strings to a list of values representing an ATOM entry. */ const failable<list<value> > readATOMEntry(const list<string>& ilist) { |