summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/server.go b/commands/server.go
index ee4d38a18..875a98ba2 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -186,7 +186,7 @@ func serve(port int) {
jww.FEEDBACK.Println("Serving pages from memory")
}
- httpFs := &afero.HttpFs{SourceFs: hugofs.DestinationFS}
+ httpFs := afero.NewHttpFs(hugofs.DestinationFS)
fs := filesOnlyFs{httpFs.Dir(helpers.AbsPathify(viper.GetString("PublishDir")))}
fileserver := http.FileServer(fs)