mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
allow scraper to follow redirects (derpibooru/philomena#210)
This commit is contained in:
parent
f771f4a90f
commit
776be8916a
1 changed files with 1 additions and 0 deletions
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue