add fallback to application/octet-stream

This commit is contained in:
hzrd149 2025-05-24 12:08:00 -05:00
parent 2d1593d634
commit 0baee02851
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ The `/mirror` endpoint MUST download the blob from the specified URL and verify
The endpoint MUST return a [Blob Descriptor](#blob-descriptor) and a `2xx` status code if the mirroring was successful or a `4xx` status code and error messageif it was not
Servers SHOULD re-use the `Content-Type` header returned from the request to the URL to discover the mime type of the blob. If the `Content-Type` header is not returned they SHOULD attempt to use the file extension in the URL to guess the mime type.
Servers SHOULD use the `Content-Type` header returned from the requested URL to infer the mime type of the blob. If the `Content-Type` header is not returned they SHOULD attempt to use the file extension in the URL or fallback to `application/octet-stream`.
Servers MAY reject a mirror request for any reason and MUST respond with the appropriate HTTP `4xx` status code and an error message explaining the reason for the rejection.