fix(handlers): fallback to OCI media type for manifests with no payload media type
When pushing a manifest with no media type on the payload, there was a discrepancy between database on/off:
- On: Fails with 500 error due to failing to find an empty media type in the
media_types
table; - Off: Success. Treated as an OCI manifest.
This MR fixes that. I have a followup MR (!712 (merged)) with a bunch of tests for all possible scenarios.
Edited by João Pereira