Skip to content
Snippets Groups Projects
Commit 63dfe294 authored by Jakob Probst's avatar Jakob Probst
Browse files

fix: fix an issue with `mautrix` package not handling trailing slashes correctly

parent affeeddf
No related branches found
No related tags found
No related merge requests found
Pipeline #160532 passed
...@@ -6,6 +6,7 @@ import ( ...@@ -6,6 +6,7 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"os" "os"
"strings"
"time" "time"
"code.fbi.h-da.de/its/bbbatscale-support-notify/webhooks" "code.fbi.h-da.de/its/bbbatscale-support-notify/webhooks"
...@@ -43,7 +44,7 @@ func main() { ...@@ -43,7 +44,7 @@ func main() {
flag.Parse() flag.Parse()
m, err := mautrix.NewClient(*matrixHomeserver, id.UserID(*matrixUserID), m, err := mautrix.NewClient(strings.TrimRight(*matrixHomeserver, "/"), id.UserID(*matrixUserID),
*matrixToken) *matrixToken)
if err != nil { if err != nil {
log.Fatalw("matrix.NewClient returned with error", log.Fatalw("matrix.NewClient returned with error",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment