mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +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
|
||||
Tesla.client(
|
||||
[
|
||||
{Tesla.Middleware.FollowRedirects, max_redirects: 1},
|
||||
{Tesla.Middleware.Headers,
|
||||
[
|
||||
{"User-Agent",
|
||||
|
|
Loading…
Reference in a new issue