Go's MIME table has no .webmanifest entry, so http.FileServer sniffed the PWA web app manifest as text/plain. mime.AddExtensionType at package load makes TypeByExtension authoritative. A correctness nit (the manifest spec parses by content and nosniff does not reject manifests), but a PWA server should label its manifest correctly.
9 lines
161 B
AMPL
9 lines
161 B
AMPL
module code.nochebuena.dev/einherjar/spa-server
|
|
|
|
go 1.26
|
|
|
|
require (
|
|
code.nochebuena.dev/einherjar/contracts v1.7.1
|
|
code.nochebuena.dev/einherjar/core v1.7.1
|
|
)
|