diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-03-28 14:45:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-28 14:45:22 -0400 |
| commit | dfd4d42d17400e0291bcbf2a6373a32b35462350 (patch) | |
| tree | 7ff7052a1d3721970abb655dcec191a510b28b5b /lib/anubis.go | |
| parent | 236e32ee9557cda24e8a20b5da0a904c8cd2ebd1 (diff) | |
| parent | bb4f49cfd94783111e2fbed99b4ea7a2077fa0bf (diff) | |
| download | anubis-Xe/deblob.tar.xz anubis-Xe/deblob.zip | |
Merge branch 'main' into Xe/deblobXe/deblob
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'lib/anubis.go')
| -rw-r--r-- | lib/anubis.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/anubis.go b/lib/anubis.go index 83e04dd..8d5dac1 100644 --- a/lib/anubis.go +++ b/lib/anubis.go @@ -119,7 +119,7 @@ func New(opts Options) (*Server, error) { mux := http.NewServeMux() xess.Mount(mux) - mux.Handle(anubis.StaticPath, internal.UnchangingCache(http.StripPrefix(anubis.StaticPath, http.FileServerFS(web.Static)))) + mux.Handle(anubis.StaticPath, internal.UnchangingCache(internal.NoBrowsing(http.StripPrefix(anubis.StaticPath, http.FileServerFS(web.Static))))) if opts.ServeRobotsTXT { mux.HandleFunc("/robots.txt", func(w http.ResponseWriter, r *http.Request) { |
