From 8b0e40bb3840a755f60fdc823fbd1963aaa0c402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moys=C3=A9s=20Borges?= Date: Thu, 2 Jul 2015 08:17:11 -0300 Subject: [PATCH] Fixed outdated comment. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Synchronized the comment for httputils/mimetype.DetectContentType with the actual code. Signed-off-by: Moysés Borges --- pkg/httputils/mimetype.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/httputils/mimetype.go b/pkg/httputils/mimetype.go index 824d4b4fa8..5d1aee40be 100644 --- a/pkg/httputils/mimetype.go +++ b/pkg/httputils/mimetype.go @@ -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)