]> Cypherpunks repositories - gostls13.git/commitdiff
godoc: update metadata upon launch
authorAndrew Gerrand <adg@golang.org>
Wed, 25 Jan 2012 00:56:31 +0000 (11:56 +1100)
committerAndrew Gerrand <adg@golang.org>
Wed, 25 Jan 2012 00:56:31 +0000 (11:56 +1100)
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

src/cmd/godoc/main.go

index 9f4659151ece7da5e662e3270d7b531e0dabe6b4..f74b6f40475ef073c2c5440f86afd706eac6d55b 100644 (file)
@@ -337,6 +337,8 @@ func main() {
                        }()
                }
 
+               // Immediately update metadata.
+               updateMetadata()
                // Periodically refresh metadata.
                go refreshMetadataLoop()