parent
3e7e80a836
commit
cf3cba8f5f
|
@ -100,6 +100,16 @@ class ExceptionHandlingConfigurerTests extends BaseSpringSpec {
|
||||||
response.status == HttpServletResponse.SC_UNAUTHORIZED
|
response.status == HttpServletResponse.SC_UNAUTHORIZED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def "Chrome is Form by default"() {
|
||||||
|
setup:
|
||||||
|
loadConfig(DefaultSecurityConfig)
|
||||||
|
when:
|
||||||
|
request.addHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8")
|
||||||
|
springSecurityFilterChain.doFilter(request,response,chain)
|
||||||
|
then:
|
||||||
|
response.status == HttpServletResponse.SC_MOVED_TEMPORARILY
|
||||||
|
}
|
||||||
|
|
||||||
def "ContentNegotiationStrategy defaults to HeaderContentNegotiationStrategy"() {
|
def "ContentNegotiationStrategy defaults to HeaderContentNegotiationStrategy"() {
|
||||||
when:
|
when:
|
||||||
loadConfig(HttpBasicAndFormLoginEntryPointsConfig)
|
loadConfig(HttpBasicAndFormLoginEntryPointsConfig)
|
||||||
|
|
Loading…
Reference in New Issue