Skip to content

Commit 3c4d2b0

Browse files
Update ai_catalog.py
Co-authored-by: Tadas Antanavicius <tadas@tadasant.com>
1 parent b658e7c commit 3c4d2b0

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/mcp/server/experimental/ai_catalog.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,7 @@ def discovery_response(request: Request, body: bytes, media_type: str) -> Respon
6767
if _if_none_match_matches(request.headers.get("if-none-match"), etag):
6868
return Response(
6969
status_code=304,
70-
headers={
71-
"ETag": etag,
72-
"Cache-Control": DISCOVERY_HEADERS["Cache-Control"],
73-
},
70+
headers={**DISCOVERY_HEADERS, "ETag": etag},
7471
)
7572
return Response(body, media_type=media_type, headers={**DISCOVERY_HEADERS, "ETag": etag})
7673

0 commit comments

Comments
 (0)