testmatrix 0.2.3__tar.gz → 0.2.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testmatrix
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: A matrix server sanity tester
5
5
  Author-email: Sebastian Spaeth <Sebastian@SSpaeth.de>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -5,7 +5,7 @@
5
5
  from .matrixserver import MatrixServer
6
6
  from .jwtauth import JWTAuth
7
7
 
8
- __version__ = "0.2.3"
8
+ __version__ = "0.2.4"
9
9
  __all__ = ["MatrixServer", "JWTAuth"]
10
10
 
11
11
  # User Agent and possibly other required headers that we need for all requests
@@ -200,7 +200,9 @@ class MatrixServer:
200
200
  if self.diagnostics:
201
201
  logging.error("𐄂 Client well known is no valid json")
202
202
  else:
203
- self.client_baseurl = wellknown_client["m.homeserver"]["base_url"]
203
+ client_baseurl = wellknown_client["m.homeserver"]["base_url"]
204
+ # strip final dashes
205
+ self.client_baseurl = client_baseurl.rstrip("/")
204
206
  if self.diagnostics:
205
207
  logging.debug(" Client url: %s",
206
208
  self.loganon(self.client_baseurl,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testmatrix
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: A matrix server sanity tester
5
5
  Author-email: Sebastian Spaeth <Sebastian@SSpaeth.de>
6
6
  License-Expression: AGPL-3.0-or-later
File without changes
File without changes
File without changes
File without changes
File without changes