metacpan-api
metacpan-api copied to clipboard
Endpoint `/v1/release/files_by_category` is unexpectedly sensitive to the `Content-Type` submitted
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