fix: robots.txt containing newline and whitespaces (#3560)

This commit is contained in:
dni ⚡
2025-11-24 16:26:21 +01:00
committed by GitHub
parent d2ca774f6f
commit 148ba9d275
+1 -4
View File
@@ -92,10 +92,7 @@ async def get_user_wallet(
@generic_router.get("/robots.txt", response_class=HTMLResponse)
async def robots():
data = """
User-agent: *
Disallow: /
"""
data = "User-agent: *\nDisallow: /"
return HTMLResponse(content=data, media_type="text/plain")