fix: robots.txt containing newline and whitespaces (#3560)
This commit is contained in:
parent
d2ca774f6f
commit
148ba9d275
1 changed files with 1 additions and 4 deletions
|
|
@ -92,10 +92,7 @@ async def get_user_wallet(
|
||||||
|
|
||||||
@generic_router.get("/robots.txt", response_class=HTMLResponse)
|
@generic_router.get("/robots.txt", response_class=HTMLResponse)
|
||||||
async def robots():
|
async def robots():
|
||||||
data = """
|
data = "User-agent: *\nDisallow: /"
|
||||||
User-agent: *
|
|
||||||
Disallow: /
|
|
||||||
"""
|
|
||||||
return HTMLResponse(content=data, media_type="text/plain")
|
return HTMLResponse(content=data, media_type="text/plain")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue