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

bug/output_format param does not work when Accept header is sent #195

Open
awalker4 opened this issue Aug 22, 2023 · 0 comments
Open

bug/output_format param does not work when Accept header is sent #195

awalker4 opened this issue Aug 22, 2023 · 0 comments

Comments

@awalker4
Copy link
Collaborator

awalker4 commented Aug 22, 2023

This returns json:

curl 'http://localhost:8000/general/v0/general' --header 'Accept: application/json' --form files=@sample-docs/layout-parser-paper-fast.pdf --form output_format="text/csv"

And this returns csv:

curl 'http://localhost:8000/general/v0/general' --form files=@sample-docs/layout-parser-paper-fast.pdf --form output_format="text/csv"

I think we want some sort of indication that the Accept header is overriding the output_type, maybe an error when both are present with different filetypes?

@awalker4 awalker4 changed the title bug/output_format param does not work when Content-Type is sent bug/output_format param does not work when Accept header is sent Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant