We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee71ef6 commit 9f84544Copy full SHA for 9f84544
vllm/entrypoints/openai/api_server.py
@@ -258,7 +258,8 @@ def _cleanup_ipc_path():
258
259
async def validate_json_request(raw_request: Request):
260
content_type = raw_request.headers.get("content-type", "").lower()
261
- if content_type != "application/json":
+ media_type = content_type.split(";", maxsplit=1)[0]
262
+ if media_type != "application/json":
263
raise HTTPException(
264
status_code=HTTPStatus.UNSUPPORTED_MEDIA_TYPE,
265
detail="Unsupported Media Type: Only 'application/json' is allowed"
0 commit comments