From d67276a31652300e8e21d745578c8b9f7d3963d8 Mon Sep 17 00:00:00 2001 From: Iliana Weller Date: Tue, 3 Apr 2018 18:30:30 -0700 Subject: [PATCH] Return 204 No Content for favicon.ico, robots.txt --- emojos.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emojos.py b/emojos.py index e20e09a..6bcf367 100644 --- a/emojos.py +++ b/emojos.py @@ -35,6 +35,12 @@ def emojo(domain): return render_template('oh_no.html') +@app.route('/favicon.ico') +@app.route('/robots.txt') +def no_content(): + return ('', 204) + + @app.route('/', methods=('GET', 'POST')) def index(): if request.method == 'POST':