@@ -144,9 +144,14 @@ using is `org.jruby.rack.RackFilter`, the filter supports the following
144144 gets reset (accepts values "true", "false" and "buffer" to reset the buffer
145145 only), by default "true"
146146- ** addsHtmlToPathInfo** controls whether the .html suffix is added to the URI
147- when checking if the request is for a static page
147+ when checking if the request is for a static page. The default behavior for
148+ Rails and many other Ruby applications is to add an * .html* extension to the
149+ resource and attempt to handle it before serving a dynamic request on the
150+ original URI. However, this behavior may confuse other servlets in your
151+ application that have a wildcard mapping. Defaults to true.
148152- ** verifiesHtmlResource** used with the previous parameter to make sure the
149- requested static resource exists before adding the .html request URI suffix
153+ requested static resource exists before adding the .html request URI suffix.
154+ Defaults to false.
150155
151156The application can also be configured to dispatch through a servlet instead of
152157a filter, the servlet class name is ` org.jruby.rack.RackServlet ` .
@@ -245,20 +250,6 @@ as context init parameters in web.xml or as VM-wide system properties.
245250 been previously read this leads to a limitation (Rack won't see the POST paras).
246251 Thus an alternate pure 'servlet' env "conversion" is provided that maps servlet
247252 parameters (and cookies) directly to Rack params, avoiding Rack's input parsing.
248- - ` jruby.rack.filter.adds.html ` :
249- ** deprecated** use ` addsHtmlToPathInfo ` filter config init parameter.
250- The default behavior for Rails and many other Ruby applications is to add an
251- * .html* extension to the resource and attempt to handle it before serving a
252- dynamic request on the original URI.
253- However, this behavior may confuse other servlets in your application that
254- have a wildcard mapping. Defaults to true.
255- - ` jruby.rack.filter.verify.resource.exists ` :
256- ** deprecated** use ` verifiesHtmlResource ` filter config init parameter.
257- If ` jruby.rack.filter.adds.html ` is true, then this setting, when true, adds
258- an additional check using ` ServletContext#getResource ` to verify that the
259- * .html* resource exists. Default is false.
260- (Note that apparently some servers may not implement ` getResource ` in the way
261- that is expected here, so in that case this setting won't matter.)
262253
263254## Initialization
264255
0 commit comments