Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster committed Nov 24, 2017
1 parent eb1c2fa commit 777cc17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,10 @@ def test_send_file_range_request_xsendfile_invalid(self, app, client):
# 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()
Expand Down

0 comments on commit 777cc17

Please sign in to comment.