fix(hub): use X-MCP-Secret header for opax-mcp auth
This commit is contained in:
parent
e84a52d4f6
commit
8ae993d930
|
|
@ -88,7 +88,7 @@ def _identity_token() -> str:
|
||||||
|
|
||||||
def _mcp_headers() -> dict:
|
def _mcp_headers() -> dict:
|
||||||
return {
|
return {
|
||||||
"X-MCP-Key": _MCP_SECRET.strip(),
|
"X-MCP-Secret": _MCP_SECRET.strip(),
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ def _identity_token() -> str:
|
||||||
|
|
||||||
def _mcp_headers() -> dict:
|
def _mcp_headers() -> dict:
|
||||||
return {
|
return {
|
||||||
"X-MCP-Key": _MCP_SECRET.strip(),
|
"X-MCP-Secret": _MCP_SECRET.strip(),
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user