From 0c4b479de9096e988ceb0bbda704fc045b4c71a8 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Sat, 20 Nov 2021 10:37:11 -0300 Subject: [PATCH] [api.http] refactoring: removing unneeded return type --- bauh/api/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bauh/api/http.py b/bauh/api/http.py index cc54d9d3..20b9a84d 100644 --- a/bauh/api/http.py +++ b/bauh/api/http.py @@ -70,7 +70,7 @@ class HttpClient: def get_content_length_in_bytes(self, url: str, session: bool = True) -> Optional[int]: if not url: - return None + return params = {'url': url, 'allow_redirects': True, 'stream': True}