Skip to content
Snippets Groups Projects
Commit 54b27f2d authored by joel.vonderwe's avatar joel.vonderwe Committed by michael.minelli
Browse files

Return error when client headers are missing

parent 6f9a561e
Branches
Tags
1 merge request!3Return error when client headers are missing (issue #19)
...@@ -26,6 +26,8 @@ class ClientVersionCheckerMiddleware { ...@@ -26,6 +26,8 @@ class ClientVersionCheckerMiddleware {
} }
new Session().sendResponse(res, HttpStatusCode.MethodNotAllowed, {}, `Unsupported client.`, DojoStatusCode.CLIENT_NOT_SUPPORTED); 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);
} }
}; };
} }
......
Subproject commit 75fedb26c47bb6f707725307a79a45a13e62496d Subproject commit 7c5131a6ce0f314b69cf14a2ab5b59c9c68bb781
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment