Browse Source

Fix broken test

pull/2536/head
Adrian Moennich 7 years ago
parent
commit
777cc17de3
  1. 4
      tests/test_helpers.py

4
tests/test_helpers.py

@ -571,6 +571,10 @@ class TestSendfile(object):
# https://github.com/pallets/flask/issues/2526
app.use_x_sendfile = True
@app.route('/')
def index():
return flask.send_file('static/index.html', conditional=True)
rv = client.get('/', headers={'Range': 'bytes=1000-'})
assert rv.status_code == 416
rv.close()

Loading…
Cancel
Save