@ -16,22 +16,10 @@
@@ -16,22 +16,10 @@
package org.springframework.cloud.netflix.zuul.filters.pre ;
import java.io.ByteArrayOutputStream ;
import java.io.IOException ;
import java.io.OutputStream ;
import java.lang.reflect.Field ;
import java.util.HashSet ;
import java.util.List ;
import java.util.Map.Entry ;
import java.util.Set ;
import javax.servlet.ServletInputStream ;
import javax.servlet.ServletRequest ;
import javax.servlet.ServletRequestWrapper ;
import javax.servlet.http.HttpServletRequest ;
import javax.servlet.http.Part ;
import org.apache.commons.lang3.StringUtils ;
import com.netflix.zuul.ZuulFilter ;
import com.netflix.zuul.context.RequestContext ;
import com.netflix.zuul.http.HttpServletRequestWrapper ;
import com.netflix.zuul.http.ServletInputStreamWrapper ;
import org.springframework.core.io.InputStreamResource ;
import org.springframework.core.io.Resource ;
import org.springframework.http.HttpEntity ;
@ -44,14 +32,23 @@ import org.springframework.util.Assert;
@@ -44,14 +32,23 @@ import org.springframework.util.Assert;
import org.springframework.util.LinkedMultiValueMap ;
import org.springframework.util.MultiValueMap ;
import org.springframework.util.ReflectionUtils ;
import org.springframework.util.StringUtils ;
import org.springframework.web.multipart.MultipartFile ;
import org.springframework.web.multipart.MultipartRequest ;
import org.springframework.web.servlet.DispatcherServlet ;
import com.netflix.zuul.ZuulFilter ;
import com.netflix.zuul.context.RequestContext ;
import com.netflix.zuul.http.HttpServletRequestWrapper ;
import com.netflix.zuul.http.ServletInputStreamWrapper ;
import javax.servlet.ServletInputStream ;
import javax.servlet.ServletRequest ;
import javax.servlet.ServletRequestWrapper ;
import javax.servlet.http.HttpServletRequest ;
import java.io.ByteArrayOutputStream ;
import java.io.IOException ;
import java.io.OutputStream ;
import java.lang.reflect.Field ;
import java.util.HashSet ;
import java.util.List ;
import java.util.Map.Entry ;
import java.util.Set ;
/ * *
* @author Spencer Gibb
@ -232,8 +229,12 @@ public class FormBodyWrapperFilter extends ZuulFilter {
@@ -232,8 +229,12 @@ public class FormBodyWrapperFilter extends ZuulFilter {
private Set < String > findQueryParams ( ) {
Set < String > result = new HashSet < > ( ) ;
String query = this . request . getQueryString ( ) ;
if ( query ! = null ) {
for ( String value : StringUtils . split ( query , "&" ) ) {
String [ ] splitQuery = StringUtils . split ( query , "&" ) ;
if ( splitQuery = = null & & query ! = null ) {
splitQuery = new String [ ] { query } ;
}
if ( splitQuery ! = null ) {
for ( String value : splitQuery ) {
if ( value . contains ( "=" ) ) {
value = value . substring ( 0 , value . indexOf ( "=" ) ) ;
}