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

Endpoint /v1/release/files_by_category is unexpectedly sensitive to the Content-Type submitted #1127

Open
jackdeguest opened this issue Aug 31, 2023 · 0 comments

Comments

@jackdeguest
Copy link

The endpoint /v1/release/files_by_category[1] is unexpectedly sensitive to the Content-Type submitted, although no data is submitted nor required.

Consider the following query:

curl -H "Content-Type: application/json" -XPOST https://fastapi.metacpan.org/v1/release/files_by_category/OALDERS/HTTP-Message-6.36

would yield a 500 Internal Server Error, whereas:

curl -XPOST https://fastapi.metacpan.org/v1/release/files_by_category/OALDERS/HTTP-Message-6.36

which simply has no Content-Type header would return a 200 OK

[1]

sub files_by_category : Path('files_by_category') : Args(2) {

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