]> git.ipfire.org Git - thirdparty/squid.git/commit
Re-compute Range response content offset after an FTP response was adapted.
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 19 Nov 2013 22:51:46 +0000 (15:51 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 19 Nov 2013 22:51:46 +0000 (15:51 -0700)
commit4d48a7c21fa451c7f32a096ea0b1dcb24160d742
treec237ebfcf649fd0a4a5684cb3105de7d6252df15
parent03723701dc8c62ce44029570a75c7c37ef19524c
Re-compute Range response content offset after an FTP response was adapted.

Moved HTTP-only offset calculation code to the general ServerStateData code so
that [converted-to-HTTP] FTP responses can use it. FTP code computes the range
offset on its own earlier, but we must REcalculate in case the response is
adapted into a response with a different (or no) content range.
src/Server.cc
src/http.cc