Skip to content

Commit

Permalink
fix: import missing URL class in middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Sep 17, 2019
1 parent 9b431c9 commit 8fc073d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/request-validation-middleware.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module.exports = requestValidationMiddleware;

const { URL } = require("url");

function requestValidationMiddleware(state, request, response, next) {
if (!request.headers.accept) {
return response.status(400).json({
Expand Down

0 comments on commit 8fc073d

Please sign in to comment.