summary refs log tree commit diff
diff options
context:
space:
mode:
-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}) }