Skip to content

Automatic redirect of python requests lib should be deactivated. #125

Open
@totonga

Description

@totonga

Describe the bug

odsbox uses requests for server calls. Those calls use redirect by default which is not a good behavior for ASAM ODS communication. allow_redirect should be set to False to avoid this

response = requests.get('http://example.com', allow_redirects=False)

To Reproduce

If you have a server that is answering with 302/308 e.g. http -> https or server answering with http in location will show this behavior.

Expected behavior

In communication with ASAM ODS server there should not be redirection following because this will cause each server call to be two.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions