Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Engelhardt <flo@dotbox.org>2020-09-17 11:53:48 +0300
committerFlorian Engelhardt <flo@dotbox.org>2020-10-20 14:10:46 +0300
commitbb6ede83449725e0240f5c59efa73ed3acf7e104 (patch)
tree63af73b636adbab3b0e0d19a9a33eb018bc39651
parent97e087b3fad6b8378a24adef1eb356bb22af23dc (diff)
PATCH-44819 #460 add comment to clarify on why
-rw-r--r--internal/serving/disk/helpers.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/serving/disk/helpers.go b/internal/serving/disk/helpers.go
index f11c07b3..90057da9 100644
--- a/internal/serving/disk/helpers.go
+++ b/internal/serving/disk/helpers.go
@@ -58,6 +58,8 @@ func (reader *Reader) detectContentType(ctx context.Context, root vfs.Root, path
contentType = http.DetectContentType(buf[:n])
}
+ // see https://gitlab.com/gitlab-org/gitlab-pages/-/issues/460
+ // packages mime and http currently do not know about the avif file format
if contentType == "application/octet-stream" && fileExt == ".avif" {
contentType = "image/avif"
}