You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using gomobile tool to generate .framework for my iOS app. When i try to upload a m4a audio file(apple provides only this file type while recording audio on their devices), the mime type defaults to "application/octet-stream" as found here
What did you expect to see?
Content type as "audio/mp4"
What did you see instead?
Content type as "application/octet-stream"
The text was updated successfully, but these errors were encountered:
Requests for new mime types come up every now and then. We strictly follow the mime detection algorithm at https://mimesniff.spec.whatwg.org/. They don't have audio/mp4.
And from my interaction with @annevk last time, they are reluctant to add more mime types.
But unless the mimesniff spec has it, we cannot do much. Closing since this is WAI.
mikioh
changed the title
Support for audio/mp4 content type in net/http package
net/http: Support for audio/mp4 content type in net/http package
Feb 26, 2019
What version of Go are you using (
go version
)?1.10.3 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN="/Users/saranyasr/Go/bin"
GOCACHE="/Users/saranyasr/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/saranyasr/Go"
GORACE=""
GOROOT="/usr/local/opt/go/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/opt/go/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/s_/70g0jf3j3lx3rpzjy45m881958w1w2/T/go-build165443990=/tmp/go-build -gno-record-gcc-switches -fno-common"
What did you do?
Using gomobile tool to generate .framework for my iOS app. When i try to upload a m4a audio file(apple provides only this file type while recording audio on their devices), the mime type defaults to "application/octet-stream" as found here
What did you expect to see?
Content type as "audio/mp4"
What did you see instead?
Content type as "application/octet-stream"
The text was updated successfully, but these errors were encountered: