allow scraper to follow redirects (derpibooru/philomena#210)

This commit is contained in:
byte[] 2020-10-26 22:07:12 -04:00
parent f771f4a90f
commit 776be8916a

View file

@ -29,6 +29,7 @@ defmodule Philomena.Http do
defp client(headers) do defp client(headers) do
Tesla.client( Tesla.client(
[ [
{Tesla.Middleware.FollowRedirects, max_redirects: 1},
{Tesla.Middleware.Headers, {Tesla.Middleware.Headers,
[ [
{"User-Agent", {"User-Agent",