]> Cypherpunks repositories - gostls13.git/commit
godoc/httpzip.go: use correct path in Readdir
authorRobert Griesemer <gri@golang.org>
Sat, 23 Jul 2011 05:24:04 +0000 (22:24 -0700)
committerRobert Griesemer <gri@golang.org>
Sat, 23 Jul 2011 05:24:04 +0000 (22:24 -0700)
commitdcef9812171e6dd2f1fd4b193936c5d6aaa6b5d1
tree87003e7d6c5eb3398f5644f4cad8afa20c6383fd
parent8fdc2851e4340105db8c2646b2cba71bfb6357ec
godoc/httpzip.go: use correct path in Readdir

Fixes a problem where Readdir would always return
empty directories (Readdir is only called by godoc
if the usual directory handler is commented out
in godoc.go, and if a zip file system is provided;
thus, this bug never manifested itself in godoc).

Also:
- better choice of variable/field names
- simplified error handling a bit
- better comments

R=bradfitz
CC=golang-dev
https://golang.org/cl/4813047
src/cmd/godoc/httpzip.go