Return 0 when there is no error (Golang)
This commit is contained in:
8 files changed
+108
-135
No files matched your search
+1
-1
@@ -91,5 +91,5 @@ func serveDownload(c *requestContext, w http.ResponseWriter, r *http.Request) (i
|
||||
|
||||
w.Header().Set("Content-Disposition", "attachment; filename="+name+extension)
|
||||
io.Copy(w, file)
|
||||
return http.StatusOK, nil
|
||||
return 0, nil
|
||||
}
|
||||
Reference in new issue
Block a user