geminispace.info

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/geminispace.info.git
Log | Files | Refs | README | LICENSE

commit 29d601377092b43821d1d019990b193110dab12b
parent 7b37090a8e17f93ab5ab043a2aa0fe717870cc6e
Author: Natalie Pendragon <natpen@natpen.net>
Date:   Sat, 30 Jan 2021 07:05:46 -0800

Fix trailing whitespace and reformat long string

Diffstat:
Mserve/views.py | 12++++++++++--
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):