Commit 5d67ce64 authored by Jason Song's avatar Jason Song Committed by GitHub

Merge pull request #1685 from klboke/master

Use DefaultHttpFirewall instead of default StrictHttpFirewall for apollo meta service to avoid 'The request was rejected because the URL was not normalized' issue.
parents 0ac808d4 d5c11ca6
......@@ -3,10 +3,16 @@ package com.ctrip.framework.apollo.metaservice;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.security.web.firewall.DefaultHttpFirewall;
import org.springframework.security.web.firewall.HttpFirewall;
@EnableAutoConfiguration
@Configuration
@ComponentScan(basePackageClasses = ApolloMetaServiceConfig.class)
public class ApolloMetaServiceConfig {
@Bean
public HttpFirewall allowUrlEncodedSlashHttpFirewall() {
return new DefaultHttpFirewall();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment