File tree Expand file tree Collapse file tree
java/org/apache/catalina/servlets Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8484 <!-- -->
8585 <!-- useAcceptRanges Should the Accept-Ranges header be included -->
8686 <!-- in responses where appropriate? [true] -->
87+ <!-- Deprecated. This option will be removed -->
88+ <!-- without replacement in Tomcat 12 onwards where -->
89+ <!-- it will effectively be hard coded to true. -->
8790 <!-- -->
8891 <!-- For directory listing customization. Checks localXsltFile, then -->
8992 <!-- globalXsltFile, then defaults to original behavior. -->
Original file line number Diff line number Diff line change @@ -237,7 +237,11 @@ public class DefaultServlet extends HttpServlet {
237237
238238 /**
239239 * Should the Accept-Ranges: bytes header be send with static resources?
240+ *
241+ * @deprecated This option will be removed without replacement in Tomcat 12 onwards where it will effectively be
242+ * hard coded to {@code true}.
240243 */
244+ @ Deprecated
241245 protected boolean useAcceptRanges = true ;
242246
243247 /**
Original file line number Diff line number Diff line change 223223 only be processed for <code >GET</code > requests. Based on pull request
224224 <pr >790</pr > provided by Chenjp. (markt)
225225 </fix >
226+ <fix >
227+ Deprecate the <code >useAcceptRanges</code > initialisation parameter for
228+ the default servlet. It will be removed in Tomcat 12 onwards where it
229+ will effectively be hard coded to <code >true</code >. (markt)
230+ </fix >
226231 </changelog >
227232 </subsection >
228233 <subsection name =" Coyote" >
Original file line number Diff line number Diff line change @@ -194,6 +194,9 @@ Tomcat.</p>
194194 <property name =" useAcceptRanges" >
195195 If true, the Accept-Ranges header will be set when appropriate for the
196196 response. [true]
197+ <br />
198+ Deprecated. This option will be removed without replacement in Tomcat
199+ 12 onwards where it will effectively be hard coded to <code >true</code >.
197200 </property >
198201 <property name =" showServerInfo" >
199202 Should server information be presented in the response sent to clients
You can’t perform that action at this time.
0 commit comments