Skip to content

Commit

Permalink
The send_file returns response with proper content length now, so we …
Browse files Browse the repository at this point in the history
…need to remove it explicitly.
  • Loading branch information
myzhan authored and cgoldberg committed Jul 12, 2019
1 parent 9847c3a commit 593f1aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions locust/test/testcases.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def no_content_length():
r = send_file(BytesIO("This response does not have content-length in the header".encode('utf-8')),
add_etags=False,
mimetype='text/plain')
r.headers.remove("Content-Length")
return r

@app.errorhandler(404)
Expand Down

0 comments on commit 593f1aa

Please sign in to comment.