From ce4b320fd8a7aa73fcf283724c1eecd097d96869 Mon Sep 17 00:00:00 2001 From: mpl Date: Mon, 15 May 2017 16:25:05 +0200 Subject: [PATCH] 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 --- pkg/server/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/download.go b/pkg/server/download.go index c605766d1..28a5d2984 100644 --- a/pkg/server/download.go +++ b/pkg/server/download.go @@ -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