Skip to content

Commit

Permalink
docs: refine comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aofei committed Feb 22, 2019
1 parent af57ebf commit 1938292
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ MIMESniffer implements the algorithm described at
[magic numbers](https://en.wikipedia.org/wiki/Magic_number_\(programming\)#Magic_numbers_in_files))
listed [here](https://www.garykessler.net/library/file_sigs.html) to determine
the MIME type of the given data. So it can be used as an alternative for the
`http.DetectContentType()`.
`http.DetectContentType`.

## Features

* Extremely easy to use
* Only two functions
* `mimesniffer.Register()`
* `mimesniffer.Sniff()`
* `mimesniffer.Register`
* `mimesniffer.Sniff`
* Quite fast
* Supports a wide range of MIME types
* `application/epub+zip`
Expand Down
2 changes: 1 addition & 1 deletion mimesniffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

var (
// defaultSniffers is the default supported sniffers beyond the
// `http.DetectContentType()`.
// `http.DetectContentType`.
defaultSniffers = map[string]func([]byte) bool{
"application/epub+zip": applicationEPUBZip,
"application/font-sfnt": applicationFontSFNT,
Expand Down

0 comments on commit 1938292

Please sign in to comment.