mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 17:21:33 +00:00
updated lolisafe.js
break loop early
This commit is contained in:
parent
b4b4c08d1a
commit
a8cc0b9534
@ -82,6 +82,7 @@ const overrideContentTypes = (res, path) => {
|
||||
for (const contentType of contentTypes) {
|
||||
if (config.overrideContentTypes[contentType].includes(extname)) {
|
||||
res.set('Content-Type', contentType)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user