Return 204 No Content for favicon.ico, robots.txt
This commit is contained in:
parent
900065cb3c
commit
d67276a316
|
@ -35,6 +35,12 @@ def emojo(domain):
|
||||||
return render_template('oh_no.html')
|
return render_template('oh_no.html')
|
||||||
|
|
||||||
|
|
||||||
|
@app.route('/favicon.ico')
|
||||||
|
@app.route('/robots.txt')
|
||||||
|
def no_content():
|
||||||
|
return ('', 204)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/', methods=('GET', 'POST'))
|
@app.route('/', methods=('GET', 'POST'))
|
||||||
def index():
|
def index():
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
|
|
Loading…
Reference in New Issue