Return 204 No Content for favicon.ico, robots.txt

This commit is contained in:
Iliana Weller 2018-04-03 18:30:30 -07:00
parent 900065cb3c
commit d67276a316
No known key found for this signature in database
GPG Key ID: DCE341C8E949BC81
1 changed files with 6 additions and 0 deletions

View File

@ -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':