From 6810b9a947512f61bb242faf980e9927b02037c3 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 18 May 2020 08:50:12 -0400 Subject: [PATCH] skip scraper verification per benoitc/hackney#624 --- lib/philomena/http.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena/http.ex b/lib/philomena/http.ex index 56f8ca1e..5dc9c5f1 100644 --- a/lib/philomena/http.ex +++ b/lib/philomena/http.ex @@ -6,14 +6,14 @@ defmodule Philomena.Http do def get!(url, headers \\ [], options \\ []) do headers = Keyword.merge(@user_agent, headers) |> add_host(url) - options = Keyword.merge(options, proxy: proxy_host()) + options = Keyword.merge(options, proxy: proxy_host(), ssl: [insecure: true]) HTTPoison.get!(url, headers, options) end def head!(url, headers \\ [], options \\ []) do headers = Keyword.merge(@user_agent, headers) |> add_host(url) - options = Keyword.merge(options, proxy: proxy_host()) + options = Keyword.merge(options, proxy: proxy_host(), ssl: [insecure: true]) HTTPoison.head!(url, headers, options) end