Return 0 when there is no error (Golang)

This commit is contained in:
Henrique Dias committed 2017-06-28 19:06:08 +01:00
1 parent 8a1a160197
commit b214fdd0eb
8 files changed
+108 -135

No files matched your search

+1 -1
View File
@@ -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
}