Fixing typos
This commit is contained in:
parent
6deb5f2ac0
commit
bb8acd750c
@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Changed serveFeedauthor parameter for author.
|
- Changed serveFeedauthor parameter for author.
|
||||||
- Adding host parameter.
|
- Adding host parameter.
|
||||||
- Start using go modules.
|
- Start using go modules.
|
||||||
|
- Fixing typo in file extension gif
|
||||||
|
- The memetype for FB2 changed to text/fb2+xml
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
- vendor folder.
|
- vendor folder.
|
||||||
|
4
main.go
4
main.go
@ -56,7 +56,7 @@ type acquisitionFeed struct {
|
|||||||
func init() {
|
func init() {
|
||||||
mime.AddExtensionType(".mobi", "application/x-mobipocket-ebook")
|
mime.AddExtensionType(".mobi", "application/x-mobipocket-ebook")
|
||||||
mime.AddExtensionType(".epub", "application/epub+zip")
|
mime.AddExtensionType(".epub", "application/epub+zip")
|
||||||
mime.AddExtensionType(".fb2", "txt/xml")
|
mime.AddExtensionType(".fb2", "text/fb2+xml")
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -142,7 +142,7 @@ func getRel(name string, acquisition bool) (rel string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
ext := filepath.Ext(name)
|
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"
|
rel = "http://opds-spec.org/image/thumbnail"
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user