replace "filesize - 1" trick in http with proper 416 handling
authorDavid Kalnischkies <kalnischkies@gmail.com>
Mon, 16 Sep 2013 22:41:58 +0000 (00:41 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 1 Oct 2013 09:06:23 +0000 (11:06 +0200)
commit78c72d0ce22e00b194251445aae306df357d5c1a
tree4622e99fdfe579f1368cf0fb561e780c58779586
parent331e8396ee5a4f2e7d276eddc54749b2a13dd789
replace "filesize - 1" trick in http with proper 416 handling

Our http client requests the "filesize - 1" for the small edgecase of
handling a file which was completely downloaded, but not yet moved to
the correct place as we get 416 errors in that case, but as we can
handle 416 returns now we just special-case the situation of requesting
the exact filesize and handle it as a 200 without content instead.
methods/http.cc