updated lolisafe.js

break loop early
This commit is contained in:
Bobby Wibowo 2020-12-27 16:49:22 +07:00
parent b4b4c08d1a
commit a8cc0b9534
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -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
}
}
}