mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
make sure the etag header fits in the database field
This commit is contained in:
@@ -50,7 +50,8 @@ public class FeedFetcher {
|
|||||||
fetchedFeed = parser.parse(feedUrl, result.getContent());
|
fetchedFeed = parser.parse(feedUrl, result.getContent());
|
||||||
Feed feed = fetchedFeed.getFeed();
|
Feed feed = fetchedFeed.getFeed();
|
||||||
feed.setLastModifiedHeader(result.getLastModifiedSince());
|
feed.setLastModifiedHeader(result.getLastModifiedSince());
|
||||||
feed.setEtagHeader(result.geteTag());
|
feed.setEtagHeader(org.apache.commons.lang.StringUtils.substring(
|
||||||
|
result.geteTag(), 0, 255));
|
||||||
fetchedFeed.setFetchDuration(result.getDuration());
|
fetchedFeed.setFetchDuration(result.getDuration());
|
||||||
return fetchedFeed;
|
return fetchedFeed;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user