Skip to content

Commit

Permalink
made it slightly cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
mdebarros committed Aug 27, 2021
1 parent 132f941 commit b5d7dea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/InboundServer/middlewares.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,7 @@ const createHeaderValidator = (logger) => async (

// Only validate requests for the requested resources
if (!resources.includes(resource)) {
await next();
return;
return await next();
}

// Always validate the accept header for a get request, or optionally if it has been
Expand Down

0 comments on commit b5d7dea

Please sign in to comment.