From d680dc6bf37bb292b0713b1da8e43345d90b0d0c Mon Sep 17 00:00:00 2001 From: stanislavsulc Date: Mon, 5 Feb 2024 03:17:25 +0100 Subject: [PATCH] allow_redirects in API requests --- mupifDB/restApiControl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mupifDB/restApiControl.py b/mupifDB/restApiControl.py index 2181b19..dfc6784 100644 --- a/mupifDB/restApiControl.py +++ b/mupifDB/restApiControl.py @@ -19,7 +19,7 @@ # -def Request(*, method, url, headers=None, auth=None, data=None, timeout=None, files={}, params={}, allow_redirects=False): +def Request(*, method, url, headers=None, auth=None, data=None, timeout=None, files={}, params={}, allow_redirects=True): if method == 'get': response = requests.get(url=url, timeout=timeout, headers=headers, auth=auth, data=data, params=params, allow_redirects=allow_redirects) elif method == 'post':