Commit fd7028b2 authored by Daniel LACROIX's avatar Daniel LACROIX
Browse files

Etherpad crash if HTTP header already sent

parent cb19bb9c
......@@ -140,7 +140,9 @@ exports.authFailure = function(hook_name, context, cb) {
const url = `${baseUrl.toString()}?${urlParams.toString()}`;
// redirect to the auth url
context.res.redirect(url);
try {
context.res.redirect(url);
} catch(e) {}
laclasseLogger.warn('authFailure: Redirect to SSO: ',url);
// signal that we have handled it
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment