summary refs log tree commit diff
diff options
context:
space:
mode:
authorCadence Ember <cadence@disroot.org>2026-01-30 01:26:24 +1300
committerCadence Ember <cadence@disroot.org>2026-01-30 01:26:24 +1300
commitd3feec18cf203092db237cfb24bb195ea6db9e0b (patch)
treed1af953914daca3b0c00ffe8e900638d421a9fb4
parentAllow SSS API to fail (diff)
downloadout-of-your-element-evil-guild-setup.tar.xz
Redact Authorization header in this case evil-guild-setup
-rw-r--r--src/matrix/mreq.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/matrix/mreq.js b/src/matrix/mreq.js

index 9085add..bb59506 100644 --- a/src/matrix/mreq.js +++ b/src/matrix/mreq.js
@@ -77,6 +77,7 @@ async function mreq(method, url, bodyIn, extra = {}) { /** @type {any} */ var root = JSON.parse(text) } catch (e) { + delete opts.headers?.["Authorization"] throw new MatrixServerError(text, {baseUrl, url, ...opts}) }