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: sniff extra mimes could be added #13383

Closed
odeke-em opened this issue Nov 24, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@odeke-em
Copy link
Member

commented Nov 24, 2015

According to section '6.2 Matching an audio or video type pattern' https://mimesniff.spec.whatwg.org/#matching-an-audio-or-video-type-pattern, we could add more mime sniffing for:

  • audio/basic.
  • audio/aiff.
  • audio/mpeg.
  • audio/midi.
  • video/avi.
@odeke-em

This comment has been minimized.

Copy link
Member Author

commented Nov 24, 2015

@gopherbot

This comment has been minimized.

Copy link

commented Nov 24, 2015

CL https://golang.org/cl/17132 mentions this issue.

@rakyll rakyll added this to the Go1.7 milestone Nov 28, 2015

odeke-em added a commit to odeke-em/go that referenced this issue Dec 9, 2015

net/http: add more mime sniffing
Following the spec at
  https://mimesniff.spec.whatwg.org/#matching-an-audio-or-video-type-pattern
adds the different signatures for the specified audio and video types.
Also updates the pattern matching algorithm by a missing clause.

Fixes golang#13383

Change-Id: Ie321f392e6570299c17176adf1c75f62f357e1e8

@gopherbot gopherbot closed this in b9daf0a Mar 26, 2016

@golang golang locked and limited conversation to collaborators Mar 26, 2017

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