fix http: superfluous response.WriteHeader call

This commit is contained in:
2024-09-17 10:09:59 +02:00
parent 03ee338f15
commit 4f4ea1a599

View File

@@ -201,6 +201,7 @@ func DownloadFile(w http.ResponseWriter, r *http.Request) {
}
io.Copy(w, fd)
return
}
w.WriteHeader(http.StatusUnauthorized)