mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 05:24:18 +02:00
Update src/fastmcp/server/dependencies.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
ee059b02b6
commit
ed2b9176cd
1 changed files with 2 additions and 4 deletions
|
|
@ -63,10 +63,8 @@ def get_http_headers(include_all: bool = False) -> dict[str, str]:
|
|||
"proxy-connection",
|
||||
}
|
||||
# (just in case)
|
||||
assert all(h.lower() == h for h in exclude_headers), (
|
||||
"Excluded headers must be lowercase"
|
||||
)
|
||||
|
||||
if not all(h.lower() == h for h in exclude_headers):
|
||||
raise ValueError("Excluded headers must be lowercase")
|
||||
headers = {}
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue