spring-framework / org.springframework.web.accept / ContentNegotiationManagerFactoryBean / setFavorPathExtension

setFavorPathExtension

open fun setFavorPathExtension(favorPathExtension: Boolean): Unit

Whether the path extension in the URL path should be used to determine the requested media type.

By default this is set to true in which case a request for /hotels.pdf will be interpreted as a request for "application/pdf" regardless of the 'Accept' header.