]> source.dussan.org Git - gitea.git/commit
Fix mime-type detection for HTTP server (#18370)
authorwxiaoguang <wxiaoguang@gmail.com>
Sun, 23 Jan 2022 12:19:49 +0000 (20:19 +0800)
committerGitHub <noreply@github.com>
Sun, 23 Jan 2022 12:19:49 +0000 (20:19 +0800)
commit87141b908d4a03ce27af3ce042dc417da925b84f
treee4a5bd11db5ef425fd025971cf21bfc3a587968f
parent35fdefc1ff253522f101ffb1337437b59676c302
Fix mime-type detection for HTTP server (#18370)

Bypass the unstable behavior of Golang's mime.TypeByExtension
modules/public/dynamic.go [deleted file]
modules/public/mime_types.go [new file with mode: 0644]
modules/public/public.go
modules/public/serve_dynamic.go [new file with mode: 0644]
modules/public/serve_static.go [new file with mode: 0644]
modules/public/static.go [deleted file]