pkg/server: doc that fileInfo.name is a base name

For the DownloadHandler, this change alleviates confusion about whether
the name from the fileInfo should be cleaned out of slashes and such
before being zip archived.

Change-Id: I3ccbd760a2c08787d4ee4e22d8dc8ed066d2f82f
This commit is contained in:
mpl 2017-05-15 16:25:05 +02:00
parent add3cfdf56
commit ce4b320fd8
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ type DownloadHandler struct {
type fileInfo struct {
mime string
name string
name string // base name of the file
size int64
modtime time.Time
rs io.ReadSeeker