Skip to content

Commit 7fa80c8

Browse files
committed
fixes from go-toolkit
1 parent 5f322b7 commit 7fa80c8

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

CHANGELOG.MD

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
44

55
**Warning:** Features marked as *alpha* may change or be removed in a future release without notice. Use with caution.
66

7+
## [0.6.6] - 2025-03-09
8+
9+
### Fixed
10+
11+
- Updated the go-toolkit, which fixes a race condition (error) that could occur reading local files
12+
13+
### Changed
14+
15+
- Now, OPUS files has the mimetype `audio/opus` in manifests, but remain `audio/ogg; codecs=opus` in webserver responses for better compatibility
16+
717
## [0.6.5] - 2025-02-28
818

919
### Fixed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require (
1515
github.com/gorilla/mux v1.8.1
1616
github.com/gotd/contrib v0.21.1
1717
github.com/pkg/errors v0.9.1
18-
github.com/readium/go-toolkit v0.13.3
18+
github.com/readium/go-toolkit v0.13.4
1919
github.com/spf13/cobra v1.10.2
2020
github.com/vmihailenco/go-tinylfu v0.2.2
2121
github.com/zeebo/xxh3 v1.1.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
243243
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
244244
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
245245
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
246-
github.com/readium/go-toolkit v0.13.3 h1:r7XzLSHP3/7GhOuvnSGkI2QCbZeCmvGz3lsI7vut7sI=
247-
github.com/readium/go-toolkit v0.13.3/go.mod h1:u0OcOYKB/Vp4wLRbC7ezY+EMfr0ZfraBP++yCpI1FMU=
246+
github.com/readium/go-toolkit v0.13.4 h1:Kg+Xydq6rwBAiF9NITOQE+VuzDUaYzGMt02lvEDxfUk=
247+
github.com/readium/go-toolkit v0.13.4/go.mod h1:u0OcOYKB/Vp4wLRbC7ezY+EMfr0ZfraBP++yCpI1FMU=
248248
github.com/readium/xmlquery v0.0.0-20230106230237-8f493145aef4 h1:iEQhT4jOppg7EK/r4/1e4ULIeCsugv35O+sDlvce5Bo=
249249
github.com/readium/xmlquery v0.0.0-20230106230237-8f493145aef4/go.mod h1:S7gZ8KUgPbsdlF9/iomcwnU31iHMyFEO66+JFJE8uz8=
250250
github.com/relvacode/iso8601 v1.7.0 h1:BXy+V60stMP6cpswc+a93Mq3e65PfXCgDFfhvNNGrdo=

pkg/serve/helpers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import (
1010
)
1111

1212
var mimeSubstitutions = map[string]string{
13-
"application/vnd.ms-opentype": "font/otf", // Not just because it's sane, but because CF will compress it!
13+
"application/vnd.ms-opentype": "font/otf", // Not just because it's sane, but because CF will compress it!
14+
"audio/opus": "audio/ogg; codecs=opus", // For max compatibility
1415
}
1516

1617
var utfCharsetNeeded = []string{

0 commit comments

Comments
 (0)