fix: Handle HEAD on /
parent
af6189bbfd
commit
b8e8cce57e
|
@ -70,6 +70,9 @@ def get_country_codes():
|
||||||
|
|
||||||
@app.route('/', methods=['GET', 'POST'])
|
@app.route('/', methods=['GET', 'POST'])
|
||||||
def index():
|
def index():
|
||||||
|
if request.method == 'HEAD':
|
||||||
|
# Just returns ack if the webserver is running
|
||||||
|
return 'Ack'
|
||||||
load_session()
|
load_session()
|
||||||
q = Querying()
|
q = Querying()
|
||||||
sources = q.get_sources(date=session['date'])
|
sources = q.get_sources(date=session['date'])
|
||||||
|
|
Loading…
Reference in New Issue