mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +00:00
lib/api: Fix inverted logic in string comparison
This commit is contained in:
parent
8e3f1190d1
commit
585fb3f49b
@ -136,7 +136,7 @@ func (s *staticsServer) serveFromAssetDir(file, theme string, w http.ResponseWri
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
mtype := assets.MimeTypeForFile(file)
|
mtype := assets.MimeTypeForFile(file)
|
||||||
if mtype == "" {
|
if mtype != "" {
|
||||||
w.Header().Set("Content-Type", mtype)
|
w.Header().Set("Content-Type", mtype)
|
||||||
}
|
}
|
||||||
http.ServeFile(w, r, p)
|
http.ServeFile(w, r, p)
|
||||||
|
Loading…
Reference in New Issue
Block a user