projects
/
shibboleth
/
cpp-sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcd0ccc
)
Collapse feeds to a single array, sanitize JSON strings.
author
Scott Cantor
<cantor.2@osu.edu>
Sat, 6 Nov 2010 19:19:53 +0000
(19:19 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Sat, 6 Nov 2010 19:19:53 +0000
(19:19 +0000)
shibsp/handler/impl/DiscoveryFeed.cpp
patch
|
blob
|
history
diff --git
a/shibsp/handler/impl/DiscoveryFeed.cpp
b/shibsp/handler/impl/DiscoveryFeed.cpp
index
fbad37a
..
1298bc1
100644
(file)
--- a/
shibsp/handler/impl/DiscoveryFeed.cpp
+++ b/
shibsp/handler/impl/DiscoveryFeed.cpp
@@
-304,7
+304,8
@@
void DiscoveryFeed::feedToFile(const Application& application, string& cacheTag)
ofstream ofile(fname.c_str());
if (!ofile)
throw ConfigurationException("Unable to create feed in ($1).", params(1,fname.c_str()));
- m->outputFeed(ofile);
+ bool first = true;
+ m->outputFeed(ofile, first);
ofile.close();
m_feedQueue.push(make_pair(feedTag, now));
}
@@
-338,7
+339,8
@@
void DiscoveryFeed::feedToStream(const Application& application, string& cacheTa
}
cacheTag = feedTag;
- m->outputFeed(os);
+ bool first = true;
+ m->outputFeed(os, first);
}
else {
throw MetadataException("MetadataProvider does not support discovery feed.");