Skip to content
Snippets Groups Projects
Commit a3e113de authored by michael.minelli's avatar michael.minelli
Browse files

ClientVersionCheckerMiddleware => Modify error by next funct if clients headers are not available

parent 54b27f2d
No related branches found
No related tags found
1 merge request!3Return error when client headers are missing (issue #19)
Pipeline #30099 waiting for manual action
......@@ -27,7 +27,7 @@ class ClientVersionCheckerMiddleware {
new Session().sendResponse(res, HttpStatusCode.MethodNotAllowed, {}, `Unsupported client.`, DojoStatusCode.CLIENT_NOT_SUPPORTED);
} else {
new Session().sendResponse(res, HttpStatusCode.MethodNotAllowed, {}, `Missing client headers.`, DojoStatusCode.CLIENT_HEADER_MISSING);
next();
}
};
}
......
Subproject commit 7c5131a6ce0f314b69cf14a2ab5b59c9c68bb781
Subproject commit 75fedb26c47bb6f707725307a79a45a13e62496d
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment