rust-tuf icon indicating copy to clipboard operation
rust-tuf copied to clipboard

HttpRepository can bail out early in some cases

Open wellsie1116 opened this issue 5 years ago • 0 comments

If a request for metadata or target contains a max length and the HTTP response contains a Content-Length greater than that value, it can error out the AsyncRead stream without having to read the entire payload over the network first.

wellsie1116 avatar Feb 05 '20 20:02 wellsie1116