fix: Handle HEAD on /

pull/12/head
Raphaël Vinot 2018-11-28 11:03:07 +01:00
parent af6189bbfd
commit b8e8cce57e
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,9 @@ def get_country_codes():
@app.route('/', methods=['GET', 'POST'])
def index():
if request.method == 'HEAD':
# Just returns ack if the webserver is running
return 'Ack'
load_session()
q = Querying()
sources = q.get_sources(date=session['date'])