From d39de7c86d9b1d101f59e409c2c3dad665a42d6b Mon Sep 17 00:00:00 2001 From: yorffuoj <47420551+yorffuoj@users.noreply.github.com> Date: Sat, 4 May 2024 00:27:08 +0200 Subject: [PATCH] \n is not interpreteed in raw --- yunodiagnoser.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/yunodiagnoser.py b/yunodiagnoser.py index 8f5f4ca..e883fcb 100644 --- a/yunodiagnoser.py +++ b/yunodiagnoser.py @@ -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("/")