-
Notifications
You must be signed in to change notification settings - Fork 18k
mime: Add mime type for avif image file format #44602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for filing this bug @amittal-quot, and welcome to the Go project! Thanks for the triage @seankhliao. @amittal-quot we only add mime patterns that are included officially included and tabled up by the Web Hypertext Application Technology Working Group (WHATWG) and in https://mimesniff.spec.whatwg.org/#matching-an-image-type-pattern. There isn’t much the Go project can do before that pattern is sniff specified by the WHATWG, and you can take a look at their issues per https://github.com/whatwg/mimesniff. |
Certainly for sniffing content in net/http as that’s where we enter mine
sniff signatures, we need a WHATWG signature first. If your change isn’t
for sniffing content types then perhaps my objection doesn’t apply.
…On Thu, Feb 25, 2021 at 12:00 PM Sean Liao ***@***.***> wrote:
@odeke-em <https://github.com/odeke-em> I assumed this would be accepted
based on the activity today in the linked CL 256478
<http://golang.org/cl/256478>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#44602 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFL3V7TEY6XLDINNTTODB3TA2T6LANCNFSM4YF4IV2Q>
.
|
My change is getting the mime type for file using file using extension. In the patchset it was mentioned that mime need to be included by IANA list. |
Change https://golang.org/cl/256478 mentions this issue: |
I have changes the commit message, Is there any other change needed |
Change https://golang.org/cl/310034 mentions this issue: |
Updates #44602 Change-Id: I2c32e388143e56928850821587f57d9729434220 Reviewed-on: https://go-review.googlesource.com/c/go/+/310034 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com> TryBot-Result: Go Bot <gobot@golang.org>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/Users/amittal/Library/Caches/go-build" GOENV="/Users/amittal/Library/Application Support/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOINSECURE="" GOMODCACHE="/Users/amittal/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/amittal/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" GOVCS="" GOVERSION="go1.16" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="/dev/null" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/xt/2rbf0kx520745mdw84t5ztldq8b1dr/T/go-build1199050817=/tmp/go-build -gno-record-gcc-switches -fno-common"What did you do?
Build static server to serve images
What did you expect to see?
AVIF images should have correct mime-type
What did you see instead?
AVIF images do not have correct mime-type
I had created a Code review for change at https://go-review.googlesource.com/c/go/+/256478. At the time IANA list(https://www.iana.org/assignments/media-types/media-types.xhtml#image) did not include AVIF, but is included now.
I don't understand Gerrit well, So recreating here.
The text was updated successfully, but these errors were encountered: