- Add MAX_RESPONSE_SIZE = 10MB constant - Check response size before json.loads() in fetch_page() - Raises ValueError if response exceeds limit - Prevents memory exhaustion from malicious/gigantic API responses
38 KiB
38 KiB