Skip to content
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

net/http: Support for audio/mp4 content type in net/http package #28033

Closed
sselvar opened this issue Oct 5, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@sselvar
Copy link

commented Oct 5, 2018

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"

@vignesh-ramachandra

This comment has been minimized.

Copy link

commented Oct 5, 2018

@agnivade

This comment has been minimized.

Copy link
Member

commented Oct 5, 2018

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.

@agnivade agnivade closed this Oct 5, 2018

@mikioh 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.