aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/site/fs.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/site/fs.go')
-rw-r--r--pkg/site/fs.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/pkg/site/fs.go b/pkg/site/fs.go
index ec57318..4542344 100644
--- a/pkg/site/fs.go
+++ b/pkg/site/fs.go
@@ -21,12 +21,6 @@ func NewSiteFileServer(root http.FileSystem, siteConfig *config.SiteConfig) *Sit
}
func (fs *SiteFileServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
- if fs.siteConfig.Flags&config.FlagDisable != 0 {
- w.WriteHeader(http.StatusForbidden)
- html.ForbiddenDisabledPage(fs.siteConfig.Host).Render(w)
- return
- }
-
path := filepath.Clean(r.URL.Path)
var info os.FileInfo