Closed
Description
Kevin McLaughlin opened SPR-13661 and commented
Followup from #15431.
We ended up adding a servlet filter that drops attempts to set ACCEPT_RANGE header.
Sample bootapp showing this issue is at https://github.com/krm1312/springrangeissues. Take that project and:
mvn clean package && java -jar bootapp/target/bootapp.jar
and then try a range request with curl:
curl -vvv -H "Accept-Encoding: gzip" -H 'Range: bytes=4726785-5726784' http://localhost:8080/test/file.bin > /tmp/f
It effectively hangs.
Affects: 4.2.2
Issue Links:
- Allow disabling HTTP range support [SPR-13660] #18235 Allow disabling HTTP range support
- Add support for http byte-range requests [SPR-10805] #15431 Add support for http byte-range requests
Referenced from: commits b35d44b