Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DojoBackendAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
Backend
DojoBackendAPI
Commits
a3e113de
Commit
a3e113de
authored
1 year ago
by
michael.minelli
Browse files
Options
Downloads
Patches
Plain Diff
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
!3
Return error when client headers are missing (issue #19)
Pipeline
#30099
waiting for manual action
Stage: code_quality
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ExpressAPI/src/middlewares/ClientVersionCheckerMiddleware.ts
+1
-1
1 addition, 1 deletion
ExpressAPI/src/middlewares/ClientVersionCheckerMiddleware.ts
ExpressAPI/src/shared
+1
-1
1 addition, 1 deletion
ExpressAPI/src/shared
with
2 additions
and
2 deletions
ExpressAPI/src/middlewares/ClientVersionCheckerMiddleware.ts
+
1
−
1
View file @
a3e113de
...
...
@@ -27,7 +27,7 @@ class ClientVersionCheckerMiddleware {
new
Session
().
sendResponse
(
res
,
HttpStatusCode
.
MethodNotAllowed
,
{},
`Unsupported client.`
,
DojoStatusCode
.
CLIENT_NOT_SUPPORTED
);
}
else
{
ne
w
Session
().
sendResponse
(
res
,
HttpStatusCode
.
MethodNotAllowed
,
{},
`Missing client headers.`
,
DojoStatusCode
.
CLIENT_HEADER_MISSING
);
ne
xt
(
);
}
};
}
...
...
This diff is collapsed.
Click to expand it.
shared
@
75fedb26
Compare
7c5131a6
...
75fedb26
Subproject commit 7
c5131a6ce0f314b69cf14a2ab5b59c9c68bb781
Subproject commit 7
5fedb26c47bb6f707725307a79a45a13e62496d
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment