Skip to content

Commit

Permalink
Fix validation and test. For #3933
Browse files Browse the repository at this point in the history
  • Loading branch information
hueniverse committed Mar 25, 2019
1 parent f25bb75 commit dddc6db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ internals.input = function (source, request, next) {
route: request.route.settings.app,
request: request.app
}
}
},
escapeHtml: true
};

delete localOptions.context[source];
Expand Down
2 changes: 1 addition & 1 deletion test/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ describe('Response', () => {
server.connection({ routes: { files: { relativeTo: Path.join(__dirname, '../') } } });
const handler = function (request, reply) {

return reply.file('./LICENSE').type('application/example');
return reply.file('./LICENSE.md').type('application/example');
};

server.route({ method: 'GET', path: '/file', handler });
Expand Down

0 comments on commit dddc6db

Please sign in to comment.