fix incorrect partial content response to HEAD request with-Range-header, or from Not-accept-range server#790
Conversation
per RFC 9110 - Section 14, currently GET is the only method. A server that turn off accept-range support should ignore Range header field.
|
Needs some small changes but I'll do that after merging but before back-porting. |
|
Note: It is not required for a server to send |
Does value of |
|
No. |
|
If app developer decide to disable Range Requests feature, how to? |
|
If they really want to do that - and I can't think of a valid reason they would - they can write a Filter (or Valve) to remove the Range header. |
|
Since the Range Requests feature is optional, may a reason stand there. |
If a server has Range-Requests feature enabled and the target resource also supports it, I think no good reason to turn off the |
|
Look at the history of the code. You'll need to go back a long way. There is definitely an argument for deprecating this option and removing it in Tomcat 12. |
Tomcat - 206:
ChangeLog: