summaryrefslogtreecommitdiffstats
path: root/commands/server.go
diff options
context:
space:
mode:
authorSteve Francia <steve.francia@gmail.com>2016-01-11 21:45:05 -0500
committerSteve Francia <steve.francia@gmail.com>2016-01-11 21:45:05 -0500
commited3015c35014089deb3b9dae03d0997c04f0834c (patch)
tree3e1f840c96a9d6630da551fef939cfa528667b9a /commands/server.go
parentdd1d655617884ccf7fceaa6f96b0c6d590c26e69 (diff)
update server to match latest afero
Diffstat (limited to 'commands/server.go')
-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)