]> Sergey Matveev's repositories - godlighty.git/blobdiff - handler.go
Use mtime instead of ctime
[godlighty.git] / handler.go
index 354b5053bebc8a7b2d0216ee8e2c7c49e2697ba1..10b0d2ff83f0b7b557be80494eea1389e8d0e31b 100644 (file)
@@ -194,7 +194,7 @@ IndexLookuped:
                                http.Error(w, "internal error", http.StatusInternalServerError)
                                return
                        }
-                       etag, err = ctimeETag(fd)
+                       etag, err = mtimeETag(fd)
                        fd.Close()
                        if err != nil {
                                printErr(http.StatusInternalServerError, err)
@@ -240,7 +240,7 @@ IndexLookuped:
                        http.Error(w, "internal error", http.StatusInternalServerError)
                        return
                }
-               etag, err = ctimeETag(fd)
+               etag, err = mtimeETag(fd)
                if err != nil {
                        printErr(http.StatusInternalServerError, err)
                        http.Error(w, "internal error", http.StatusInternalServerError)