Skip to content

Commit 0156283

Browse files
authored
Update mcp_path_rewrite_middleware.py
1 parent fc43e8e commit 0156283

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mcpgateway/middleware/mcp_path_rewrite_middleware.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,11 @@ async def __call__(self, scope, receive, send):
7373
'/tools'
7474
"""
7575

76-
7776
# Only handle HTTP requests, HTTPS uses scope["type"] == "http" in ASGI
7877
if scope["type"] != "http":
7978
await self.application(scope, receive, send)
8079
return
81-
80+
8281
scope.setdefault("headers", [])
8382

8483
# Call auth check first

0 commit comments

Comments
 (0)