Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
laclasse
etherpad
Commits
fd7028b2
Commit
fd7028b2
authored
Dec 23, 2020
by
Daniel LACROIX
Browse files
Etherpad crash if HTTP header already sent
parent
cb19bb9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
ep_laclasse/authenticate.js
View file @
fd7028b2
...
@@ -140,7 +140,9 @@ exports.authFailure = function(hook_name, context, cb) {
...
@@ -140,7 +140,9 @@ exports.authFailure = function(hook_name, context, cb) {
const
url
=
`
${
baseUrl
.
toString
()}
?
${
urlParams
.
toString
()}
`
;
const
url
=
`
${
baseUrl
.
toString
()}
?
${
urlParams
.
toString
()}
`
;
// redirect to the auth url
// redirect to the auth url
context
.
res
.
redirect
(
url
);
try
{
context
.
res
.
redirect
(
url
);
}
catch
(
e
)
{}
laclasseLogger
.
warn
(
'
authFailure: Redirect to SSO:
'
,
url
);
laclasseLogger
.
warn
(
'
authFailure: Redirect to SSO:
'
,
url
);
// signal that we have handled it
// signal that we have handled it
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment