mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fixed outdated comment.
Synchronized the comment for httputils/mimetype.DetectContentType with the actual code. Signed-off-by: Moysés Borges <moysesb@gmail.com>
This commit is contained in:
parent
98f988f62c
commit
8b0e40bb38
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue