diff --git a/backend-lehrer/services/image_service.py b/backend-lehrer/services/image_service.py index e82d9f3..c1754e0 100644 --- a/backend-lehrer/services/image_service.py +++ b/backend-lehrer/services/image_service.py @@ -44,7 +44,8 @@ async def fetch_wikipedia_image(word: str) -> Optional[str]: async with httpx.AsyncClient(timeout=10.0) as client: resp = await client.get( f"https://en.wikipedia.org/api/rest_v1/page/summary/{query}", - headers={"User-Agent": "BreakPilot/1.0 (education platform)"}, + headers={"User-Agent": "BreakPilot/1.0 (https://breakpilot.com; education platform; contact@breakpilot.com)"}, + follow_redirects=True, ) if resp.status_code == 200: data = resp.json()