diff --git a/fileserver/fileop.go b/fileserver/fileop.go index 3a39c647..7206324e 100644 --- a/fileserver/fileop.go +++ b/fileserver/fileop.go @@ -421,13 +421,11 @@ func doFile(rsp http.ResponseWriter, r *http.Request, repo *repomgr.Repo, fileID } } - if operation != "view" { - oper := "web-file-download" - if operation == "download-link" { - oper = "link-file-download" - } - sendStatisticMsg(repo.StoreID, user, oper, file.FileSize) + oper := "web-file-download" + if operation == "download-link" { + oper = "link-file-download" } + sendStatisticMsg(repo.StoreID, user, oper, file.FileSize) return nil }