retrieve the final url after potential http 30x redirect

This commit is contained in:
Athou
2013-08-22 15:35:34 +02:00
parent fb9b42ab12
commit a14484ee03
4 changed files with 35 additions and 11 deletions

View File

@@ -235,7 +235,7 @@ public class FeedREST extends AbstractREST {
try {
FetchedFeed feed = feedFetcher.fetch(url, true, null, null, null, null);
info = new FeedInfo();
info.setUrl(feed.getFeed().getUrl());
info.setUrl(feed.getUrlAfterRedirect());
info.setTitle(feed.getTitle());
} catch (Exception e) {