From 776be8916a5fa2cb4398ddb38cebf81ff3df32fb Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 26 Oct 2020 22:07:12 -0400 Subject: [PATCH] allow scraper to follow redirects (derpibooru/philomena#210) --- lib/philomena/http.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/philomena/http.ex b/lib/philomena/http.ex index 79274b75..fa9ac7d8 100644 --- a/lib/philomena/http.ex +++ b/lib/philomena/http.ex @@ -29,6 +29,7 @@ defmodule Philomena.Http do defp client(headers) do Tesla.client( [ + {Tesla.Middleware.FollowRedirects, max_redirects: 1}, {Tesla.Middleware.Headers, [ {"User-Agent",