Merge pull request #14350 from moysesb/fixdoc

Fixed outdated comment.
This commit is contained in:
Alexander Morozov 2015-07-02 10:06:31 -07:00
commit 36f6b7331e
1 changed files with 1 additions and 2 deletions

View File

@ -16,8 +16,7 @@ var MimeTypes = struct {
// http.DetectContentType is guaranteed not be nil, defaulting to
// application/octet-stream when a better guess cannot be made. The
// result of this detection is then run through mime.ParseMediaType()
// which separates it from any parameters.
// Note that calling this function does not advance the Reader at r
// which separates the actual MIME string from any parameters.
func DetectContentType(c []byte) (string, map[string]string, error) {
ct := http.DetectContentType(c)