Skip to content

Commit

Permalink
favicon.ico route
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakyHulk committed Mar 14, 2024
1 parent e6c6584 commit 1f65c6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ def healthz():
@app.route('/favicon.ico', methods=['GET'])
def favicon():
print('Favicon!', file=sys.stderr)
return flask.send_from_directory(os.path.join(app.root_path, 'static'),
'favicon.ico', mimetype='image/vnd.microsoft.icon')
return flask.redirect(flask.url_for('static', filename='favicon.ico'), code=302)


app.secret_key = os.urandom(24)
Expand Down

0 comments on commit 1f65c6e

Please sign in to comment.