Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Add accept to excluded headers

Jeremiah Lowinf4df37dc0c5d
diff --git a/src/fastmcp/server/dependencies.py b/src/fastmcp/server/dependencies.py
index 572af5282..08775225e 100644
--- a/src/fastmcp/server/dependencies.py
+++ b/src/fastmcp/server/dependencies.py
@@ -67,6 +67,7 @@ def get_http_headers(include_all: bool = False) -> dict[str, str]:
"te",
"keep-alive",
"expect",
+ "accept",
# Proxy-related headers
"proxy-authenticate",
"proxy-authorization",