Fixing typos

This commit is contained in:
Sinuhe Tellez 2019-03-09 22:49:00 -05:00
parent 6deb5f2ac0
commit bb8acd750c
2 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Changed serveFeedauthor parameter for author.
- Adding host parameter.
- Start using go modules.
- Fixing typo in file extension gif
- The memetype for FB2 changed to text/fb2+xml
### Removed
- vendor folder.

View File

@ -56,7 +56,7 @@ type acquisitionFeed struct {
func init() {
mime.AddExtensionType(".mobi", "application/x-mobipocket-ebook")
mime.AddExtensionType(".epub", "application/epub+zip")
mime.AddExtensionType(".fb2", "txt/xml")
mime.AddExtensionType(".fb2", "text/fb2+xml")
}
func main() {
@ -142,7 +142,7 @@ func getRel(name string, acquisition bool) (rel string) {
return
}
ext := filepath.Ext(name)
if rel = "http://opds-spec.org/acquisition"; ext == ".png" || ext == ".jpg" || ext == ".jpeg" || ext == ".gift" {
if rel = "http://opds-spec.org/acquisition"; ext == ".png" || ext == ".jpg" || ext == ".jpeg" || ext == ".gif" {
rel = "http://opds-spec.org/image/thumbnail"
}
return