Commit 50bc196c authored by Alex Castaño's avatar Alex Castaño

Follow redirect in metadata scraping

parent ddc0d389
defmodule MoodleNet.MetadataScraper do
def fetch(url) when is_binary(url) do
with {:ok, data} <- Furlex.unfurl(url) do
with {:ok, data} <- Furlex.unfurl(url, follow_redirect: true) do
{:ok, format_data(data)}
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment