Skip to content

Commit

Permalink
fix(logger): verificar o monitor de forma case insensitive
Browse files Browse the repository at this point in the history
Co-authored-by: Renato Davoli <112330702+RenatoDaM@users.noreply.github.com>
  • Loading branch information
PauloGoncalvesBH and RenatoDaM committed Jul 30, 2023
1 parent 8cc514e commit bdf8b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = async app => {
req.originalUrl === '/swagger-ui-standalone-preset.js.map' ||
req.originalUrl === '/swagger-ui-bundle.js' ||
req.originalUrl === '/swagger-ui-bundle.js.map' ||
req.headers.monitor ||
req.rawHeaders.some(header => header.toLowerCase() === 'monitor'.toLowerCase()) ||
(formaDeExecucao() === 'serverest.dev' && req.originalUrl === '/')) {
return true
}
Expand Down

0 comments on commit bdf8b32

Please sign in to comment.