From 0baee02851f4a3de6cd1a0ca83427aaa51233c64 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Sat, 24 May 2025 12:08:00 -0500 Subject: [PATCH] add fallback to application/octet-stream --- buds/04.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buds/04.md b/buds/04.md index dd041d9..dde6fc4 100644 --- a/buds/04.md +++ b/buds/04.md @@ -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.