mirror of
https://github.com/icewind1991/mx-puppet-steam.git
synced 2026-06-03 17:44:09 +02:00
patch matrix-bot-sdk to fix compatibility with synapse 1.90+
This commit is contained in:
parent
620bebece0
commit
f1c74277ac
4 changed files with 762 additions and 3 deletions
15
patches/@sorunome+matrix-bot-sdk+0.5.13.patch
Normal file
15
patches/@sorunome+matrix-bot-sdk+0.5.13.patch
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
diff --git a/node_modules/@sorunome/matrix-bot-sdk/lib/appservice/Appservice.js b/node_modules/@sorunome/matrix-bot-sdk/lib/appservice/Appservice.js
|
||||
index f8c7d70..8c8c3b6 100644
|
||||
--- a/node_modules/@sorunome/matrix-bot-sdk/lib/appservice/Appservice.js
|
||||
+++ b/node_modules/@sorunome/matrix-bot-sdk/lib/appservice/Appservice.js
|
||||
@@ -397,8 +397,8 @@ class Appservice extends events_1.EventEmitter {
|
||||
}
|
||||
isAuthed(req) {
|
||||
let providedToken = req.query ? req.query["access_token"] : null;
|
||||
- if (req.headers && req.headers["Authorization"]) {
|
||||
- const authHeader = req.headers["Authorization"];
|
||||
+ if (req.headers && req.headers["authorization"]) {
|
||||
+ const authHeader = req.headers["authorization"];
|
||||
if (!authHeader.startsWith("Bearer "))
|
||||
providedToken = null;
|
||||
else
|
||||
Loading…
Add table
Add a link
Reference in a new issue