\n is not interpreteed in raw

This commit is contained in:
yorffuoj 2024-05-04 00:27:08 +02:00 committed by GitHub
parent ad048806d3
commit d39de7c86d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -391,7 +391,12 @@ async def check_smtp(request):
@app.route("/robots.txt")
async def robots(request):
return raw("User-agent: *\nDisallow: /")
return raw(
"""
User-agent: *
Disallow: /
"""
)
@app.route("/")