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 068fa09 commit 20153a7Copy full SHA for 20153a7
src/huggingface_inference_toolkit/webservice_starlette.py
@@ -84,7 +84,7 @@ async def metrics(request):
84
async def predict(request):
85
try:
86
# extracts content from request
87
- content_type = request.headers.get("content-Type", None)
+ content_type = request.headers.get("content-Type", os.environ.get("DEFAULT_CONTENT_TYPE"))
88
# try to deserialize payload
89
deserialized_body = ContentType.get_deserializer(content_type).deserialize(
90
await request.body()
0 commit comments