commit 3908a24b94a8319a6df07598647c6007fd4c2826
parent 2c9c66392b50bb8e455dd1293a432f8bd2633380
Author: Natalie Pendragon <natpen@natpen.net>
Date: Sat, 30 Jan 2021 07:05:46 -0800
Fix trailing whitespace and reformat long string
Diffstat:
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/serve/views.py b/serve/views.py
@@ -59,8 +59,16 @@ def status(request):
@app.route("/robots.txt", strict_trailing_slash=False)
def status(request):
- return Response(Status.SUCCESS, "text/plain",
- "User-agent: researcher\nUser-agent: indexer\nUser-agent: archiver\nDisallow: /search\nDisallow: /backlinks\n\nUser-agent: *\nDisallow: /add-seed\nDisallow: /threads")
+ return Response(Status.SUCCESS, "text/plain",
+ """User-agent: researcher
+User-agent: indexer
+User-agent: archiver
+Disallow: /search
+Disallow: /backlinks
+
+User-agent: *
+Disallow: /add-seed
+Disallow: /threads""")
@app.route("/favicon.txt", strict_trailing_slash=False)
def favicon(request):