Skip to content

Commit 01b8f20

Browse files
committed
pre commit fix
1 parent 63765b2 commit 01b8f20

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/mcp/server/streamable_http.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -464,10 +464,7 @@ def _check_content_type(self, request: Request) -> bool:
464464
content_type = request.headers.get("content-type", "")
465465

466466
# Only normalize the media type (drop parameters) and compare
467-
media_types = [
468-
part.strip().lower()
469-
for part in content_type.split(";", 1)[0].split(",")
470-
]
467+
media_types = [part.strip().lower() for part in content_type.split(";", 1)[0].split(",")]
471468

472469
return CONTENT_TYPE_JSON in media_types
473470

0 commit comments

Comments
 (0)