Added /favicon.ico path for legacy browsers

This commit is contained in:
str4d
2012-09-17 13:29:31 +00:00
parent e9a5b01ab7
commit c2a739e9fd

View File

@@ -364,7 +364,10 @@ def legacy_show(f):
else:
return redirect(url_for('site_show', lang=lang, page=f))
@app.route('/favicon.ico')
def favicon():
return send_from_directory(os.path.join(app.root_path, 'static'),
'favicon.ico', mimetype='image/vnd.microsoft.icon')
if __name__ == '__main__':
app.run(debug=True)