Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairblue
Commits
9b557b87
Commit
9b557b87
authored
5 years ago
by
Felipe Cecagno
Committed by
Pedro Beschorner Marin
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
consider 401 as a success status for a callback
parent
89956629
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bbb-webhooks/callback_emitter.js
+2
-1
2 additions, 1 deletion
bbb-webhooks/callback_emitter.js
with
2 additions
and
1 deletion
bbb-webhooks/callback_emitter.js
+
2
−
1
View file @
9b557b87
...
...
@@ -109,7 +109,8 @@ module.exports = class CallbackEmitter extends EventEmitter {
const
responseFailed
=
(
response
)
=>
{
var
statusCode
=
(
response
!=
null
?
response
.
statusCode
:
undefined
)
return
!
((
statusCode
>=
200
)
&&
(
statusCode
<
300
))
// consider 401 as success, because the callback worked but was denied by the recipient
return
!
((
statusCode
>=
200
&&
statusCode
<
300
)
||
statusCode
==
401
)
};
request
(
requestOptions
,
function
(
error
,
response
,
body
)
{
...
...
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