Compare commits
1 Commits
12a426254d
...
4ef8423ccd
Author | SHA1 | Date |
---|---|---|
Shadowfacts | 4ef8423ccd |
|
@ -74,7 +74,8 @@ defmodule Frenzy.UpdateFeeds do
|
|||
{:ok, %HTTPoison.Response{status_code: 404}} ->
|
||||
Logger.warn("RSS feed #{feed.feed_url} not found")
|
||||
|
||||
{:ok, %HTTPoison.Response{status_code: status_code}} when status_code in [301, 302] ->
|
||||
{:ok, %HTTPoison.Response{status_code: status_code, headers: headers}}
|
||||
when status_code in [301, 302] ->
|
||||
{"Location", new_url} =
|
||||
Enum.find(headers, fn {name, _value} ->
|
||||
name == "Location"
|
||||
|
|
Loading…
Reference in New Issue