Skip to content

Commit

Permalink
allow_redirects in API requests
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislavsulc committed Feb 5, 2024
1 parent b80655c commit d680dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mupifDB/restApiControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit d680dc6

Please sign in to comment.