consistency

This commit is contained in:
Henrique Dias committed 2017-06-27 14:26:12 +01:00
1 parent 5f98fd89a8
commit 6e04c97bb9
11 files changed
+82 -76

No files matched your search

+2 -2
View File
@@ -14,10 +14,10 @@ import (
)
// checksum calculates the hash of a file. Supports MD5, SHA1, SHA256 and SHA512.
func checksum(ctx *requestContext, w http.ResponseWriter, r *http.Request) (int, error) {
func checksum(c *requestContext, w http.ResponseWriter, r *http.Request) (int, error) {
query := r.URL.Query().Get("checksum")
file, err := os.Open(ctx.Info.Path)
file, err := os.Open(c.fi.Path)
if err != nil {
return errorToHTTP(err, true), err
}