Skip to content

Commit aeb2aa3

Browse files
test: fix test
1 parent ed2c69c commit aeb2aa3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/mcpm/router/transport.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,9 @@ def _validate_api_key(self, scope: Scope, api_key: str | None) -> bool:
255255
host = get_key_from_scope(scope, key_name="host") or ""
256256
if not host.startswith("http"):
257257
host = f"http://{host}"
258-
share_config = config_manager.read_share_config()
259258
router_config = config_manager.get_router_config()
260259
host_name = urlsplit(host).hostname
261-
if share_config.get("url") and host_name != router_config["host"]:
260+
if host_name != router_config["host"]:
262261
if api_key != self.api_key:
263262
return False
264263
except Exception as e:

0 commit comments

Comments
 (0)