ref: ed3015c35014089deb3b9dae03d0997c04f0834c
parent: dd1d655617884ccf7fceaa6f96b0c6d590c26e69
author: Steve Francia <[email protected]>
date: Mon Jan 11 16:45:05 EST 2016
update server to match latest afero
--- a/commands/server.go
+++ b/commands/server.go
@@ -186,7 +186,7 @@
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)