A Range header is applied to HEAD and OPTIONS requests, answered with 206
Problem
RFC 9110 §14.2: a server MUST ignore a Range header field received with a request method that is unrecognized or for which range handling is not defined. For this specification, GET is the only method for which range handling is defined.
RangeFilter.afterHandle only skips the methods that are not safe (!request.getMethod().isSafe()). In Restlet, GET, HEAD, OPTIONS and TRACE are safe, so a Range header is applied to all of them. Measured on 3.0 (real Netty server, raw socket, a resource returning the 10-byte entity 0123456789, request header Range: bytes=0-3):
GET -> 206 Partial Content, Content-Length: 4, Content-Range: bytes 0-3/10
HEAD -> 206 Partial Content, Content-Length: 4, Content-Range: bytes 0-3/10 (should be 200, the size of the full entity)
OPTIONS -> 206 Partial Content, Content-Length: 4, Content-Range: bytes 0-3/10 (should be a plain OPTIONS answer)
POST -> 200 OK, Content-Length: 10 (already ignored)
A HEAD answered 206 no longer describes what the same GET without a range would return (RFC 9110 §9.3.2: the header fields of a HEAD response should be those of a GET), and an OPTIONS or TRACE answer is cut to a byte range.
The same condition is in RangeFilter of 3.0, 2.7 and 2.6 (in 2.6 as request.getMethod().isSafe() && response.isEntityAvailable()), so the three maintained versions are affected.
Proposal
Apply the range only to GET, in the three versions: any other method keeps its normal answer (200 for HEAD, etc.), the Range header is ignored, and Accept-Ranges is unchanged.