Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Accept header in HTTP requests #2064

Open
1 task
jelcaf opened this issue Dec 2, 2024 · 0 comments · May be fixed by #2088
Open
1 task

Use Accept header in HTTP requests #2064

jelcaf opened this issue Dec 2, 2024 · 0 comments · May be fixed by #2088
Assignees
Labels
enhancement New feature or request

Comments

@jelcaf
Copy link
Member

jelcaf commented Dec 2, 2024

What is the expected feature or enhancement?

This Accept header allows the client to indicate to the server the content types it can handle in the response, which is crucial when interacting with APIs that can return multiple response formats.

It seems that currently we are sending 'Accept': '*/*' or in some cases like when we create a Job we are not sending a value for this header.

Acceptance criteria

  • Send Accept header as application/json if the response expected is a dictionary or list, unless the user specifies a different value.
@jelcaf jelcaf added the enhancement New feature or request label Dec 2, 2024
@kt474 kt474 self-assigned this Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants