fix http: superfluous response.WriteHeader call
This commit is contained in:
@@ -201,6 +201,7 @@ func DownloadFile(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
io.Copy(w, fd)
|
io.Copy(w, fd)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
w.WriteHeader(http.StatusUnauthorized)
|
w.WriteHeader(http.StatusUnauthorized)
|
||||||
|
|||||||
Reference in New Issue
Block a user