mirror of https://github.com/pallets/flask.git
Fix broken test
This commit is contained in:
parent
eb1c2faf9f
commit
777cc17de3
|
|
@ -571,6 +571,10 @@ class TestSendfile(object):
|
||||||
# https://github.com/pallets/flask/issues/2526
|
# https://github.com/pallets/flask/issues/2526
|
||||||
app.use_x_sendfile = True
|
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-'})
|
rv = client.get('/', headers={'Range': 'bytes=1000-'})
|
||||||
assert rv.status_code == 416
|
assert rv.status_code == 416
|
||||||
rv.close()
|
rv.close()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue