From 1085cab91a4978e72f97f984f546b27ca36c4e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Wed, 26 May 2021 13:28:24 -0300 Subject: [PATCH] =?UTF-8?q?Verifica=C3=A7=C3=A3o=20de=20atualiza=C3=A7?= =?UTF-8?q?=C3=A3o=20ignorando=20certificados=20e=20redirects?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/servicos/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigi/apps/servicos/models.py b/sigi/apps/servicos/models.py index af86fc3..ea66ac2 100644 --- a/sigi/apps/servicos/models.py +++ b/sigi/apps/servicos/models.py @@ -149,7 +149,7 @@ class Servico(models.Model): url += param_pesquisa[0] try: # Captura erros de conexão - req = requests.get(url) + req = requests.get(url, verify=False, allow_redirects=True) except Exception as e: return { 'data': '',