fix/refac: stt default content type
This commit is contained in:
@@ -622,6 +622,10 @@ def strict_match_mime_type(supported: list[str] | str, header: str) -> Optional[
|
||||
|
||||
supported = [s for s in supported if s.strip() and "/" in s]
|
||||
|
||||
if len(supported) == 0:
|
||||
# Default to common types if none are specified
|
||||
supported = ["audio/*", "video/webm"]
|
||||
|
||||
match = mimeparse.best_match(supported, header)
|
||||
if not match:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user