mirror of
https://github.com/YunoHost/check-http.git
synced 2024-09-03 19:56:42 +02:00
\n is not interpreteed in raw
This commit is contained in:
parent
ad048806d3
commit
d39de7c86d
1 changed files with 6 additions and 1 deletions
|
@ -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("/")
|
||||
|
|
Loading…
Add table
Reference in a new issue