make sure enclosure urls fit in the database field

This commit is contained in:
Athou
2013-05-23 10:03:15 +02:00
parent c9f2b545c9
commit f9cfea4f79
4 changed files with 14 additions and 12 deletions

View File

@@ -50,8 +50,7 @@ public class FeedFetcher {
fetchedFeed = parser.parse(feedUrl, result.getContent());
Feed feed = fetchedFeed.getFeed();
feed.setLastModifiedHeader(result.getLastModifiedSince());
feed.setEtagHeader(org.apache.commons.lang.StringUtils.substring(
result.geteTag(), 0, 255));
feed.setEtagHeader(FeedUtils.truncate(result.geteTag(), 255));
fetchedFeed.setFetchDuration(result.getDuration());
return fetchedFeed;
}