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 (
"fmt"
"net/http"
"os"
"strings"
"time"
"code.fbi.h-da.de/its/bbbatscale-support-notify/webhooks"
......@@ -43,7 +44,7 @@ func main() {
flag.Parse()
m, err := mautrix.NewClient(*matrixHomeserver, id.UserID(*matrixUserID),
m, err := mautrix.NewClient(strings.TrimRight(*matrixHomeserver, "/"), id.UserID(*matrixUserID),
*matrixToken)
if err != nil {
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