]> git.saurik.com Git - apt.git/commit - methods/server.cc
detect 416 complete file in partial by expected hash
authorDavid Kalnischkies <david@kalnischkies.de>
Mon, 11 May 2015 22:30:16 +0000 (00:30 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Mon, 11 May 2015 22:30:16 +0000 (00:30 +0200)
commitdcbb364fc69e1108b3fea3adb12a7ba83d9af467
tree5422a146993545e1d9b3bec04b7e5ebfed598e00
parent88593886a42025d51d76051da5929b044e42efee
detect 416 complete file in partial by expected hash

If we have the expected hashes we can check with them if the file we
have in partial we got a 416 for is the expected file. We detected this
with same-size before, but not every server sends a good Content-Range
header with a 416 response.
methods/https.cc
methods/https.h
methods/server.cc
test/integration/framework
test/integration/test-apt-update-transactions
test/integration/test-partial-file-support
test/interactive-helper/aptwebserver.cc