mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-19 12:16:24 +08:00
feat: default settings api (#716)
* feat: default settings api * fix logic bug * chore
This commit is contained in:
@ -73,7 +73,7 @@ func attachHeader(w http.ResponseWriter, file model.Obj, header http.Header) {
|
||||
func GetEtag(file model.Obj) string {
|
||||
hash := ""
|
||||
for _, v := range file.GetHash().Export() {
|
||||
if strings.Compare(v, hash) > 0 {
|
||||
if v > hash {
|
||||
hash = v
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user