Commit 8eaf38cb authored by Andrew Gerrand's avatar Andrew Gerrand

godoc: update metadata upon launch

Without this change it's possible to launch godoc,
immediately GET /, and see a directory listing instead of root.html

R=gri
CC=golang-dev
https://golang.org/cl/5575054
parent 8b60613b
......@@ -337,6 +337,8 @@ func main() {
}()
}
// Immediately update metadata.
updateMetadata()
// Periodically refresh metadata.
go refreshMetadataLoop()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment