Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/_bentoml_impl/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ async def api_endpoint(self, name: str, request: Request) -> Response:
media_type = media_type.split(";")[0].strip()

# NOTE: The following check is for security concern, DO NOT REMOVE
if self.is_main and media_type == "application/vnd.bentoml+pickle":
if media_type == "application/vnd.bentoml+pickle":
raise BentoMLException(
"application/vnd.bentoml+pickle is not allowed in main server",
error_code=HTTPStatus.UNSUPPORTED_MEDIA_TYPE,
Expand Down