fix: translate final Romanian comment in items.py to English
This commit is contained in:
@@ -69,7 +69,7 @@ async def extract_label(
|
|||||||
"""[C-01] Extract label from image — only for authenticated users. [H-02] Rate limit: 10 req/min per IP."""
|
"""[C-01] Extract label from image — only for authenticated users. [H-02] Rate limit: 10 req/min per IP."""
|
||||||
from ..ai_vision import extract_label_info
|
from ..ai_vision import extract_label_info
|
||||||
|
|
||||||
# [SECURITY FIX H-03] Validare tip MIME și dimensiune maximă
|
# [SECURITY FIX H-03] Validate MIME type and maximum size
|
||||||
if file.content_type not in _ALLOWED_IMAGE_TYPES:
|
if file.content_type not in _ALLOWED_IMAGE_TYPES:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=status.HTTP_415_UNSUPPORTED_MEDIA_TYPE,
|
status_code=status.HTTP_415_UNSUPPORTED_MEDIA_TYPE,
|
||||||
|
|||||||
Reference in New Issue
Block a user