Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
99b86e7a
Commit
99b86e7a
authored
Oct 10, 2016
by
Ryan Baxter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1374
parent
f30e8b7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
23 deletions
+24
-23
FormBodyWrapperFilter.java
...cloud/netflix/zuul/filters/pre/FormBodyWrapperFilter.java
+23
-22
pom.xml
spring-cloud-netflix-dependencies/pom.xml
+1
-1
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/filters/pre/FormBodyWrapperFilter.java
View file @
99b86e7a
...
@@ -16,22 +16,10 @@
...
@@ -16,22 +16,10 @@
package
org
.
springframework
.
cloud
.
netflix
.
zuul
.
filters
.
pre
;
package
org
.
springframework
.
cloud
.
netflix
.
zuul
.
filters
.
pre
;
import
java.io.ByteArrayOutputStream
;
import
com.netflix.zuul.ZuulFilter
;
import
java.io.IOException
;
import
com.netflix.zuul.context.RequestContext
;
import
java.io.OutputStream
;
import
com.netflix.zuul.http.HttpServletRequestWrapper
;
import
java.lang.reflect.Field
;
import
com.netflix.zuul.http.ServletInputStreamWrapper
;
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
org.springframework.core.io.InputStreamResource
;
import
org.springframework.core.io.InputStreamResource
;
import
org.springframework.core.io.Resource
;
import
org.springframework.core.io.Resource
;
import
org.springframework.http.HttpEntity
;
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.LinkedMultiValueMap
;
import
org.springframework.util.MultiValueMap
;
import
org.springframework.util.MultiValueMap
;
import
org.springframework.util.ReflectionUtils
;
import
org.springframework.util.ReflectionUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartRequest
;
import
org.springframework.web.multipart.MultipartRequest
;
import
org.springframework.web.servlet.DispatcherServlet
;
import
org.springframework.web.servlet.DispatcherServlet
;
import
com.netflix.zuul.ZuulFilter
;
import
javax.servlet.ServletInputStream
;
import
com.netflix.zuul.context.RequestContext
;
import
javax.servlet.ServletRequest
;
import
com.netflix.zuul.http.HttpServletRequestWrapper
;
import
javax.servlet.ServletRequestWrapper
;
import
com.netflix.zuul.http.ServletInputStreamWrapper
;
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
* @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
()
{
private
Set
<
String
>
findQueryParams
()
{
Set
<
String
>
result
=
new
HashSet
<>();
Set
<
String
>
result
=
new
HashSet
<>();
String
query
=
this
.
request
.
getQueryString
();
String
query
=
this
.
request
.
getQueryString
();
if
(
query
!=
null
)
{
String
[]
splitQuery
=
StringUtils
.
split
(
query
,
"&"
);
for
(
String
value
:
StringUtils
.
split
(
query
,
"&"
))
{
if
(
splitQuery
==
null
&&
query
!=
null
)
{
splitQuery
=
new
String
[]{
query
};
}
if
(
splitQuery
!=
null
)
{
for
(
String
value
:
splitQuery
)
{
if
(
value
.
contains
(
"="
))
{
if
(
value
.
contains
(
"="
))
{
value
=
value
.
substring
(
0
,
value
.
indexOf
(
"="
));
value
=
value
.
substring
(
0
,
value
.
indexOf
(
"="
));
}
}
...
...
spring-cloud-netflix-dependencies/pom.xml
View file @
99b86e7a
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<archaius.version>
0.7.4
</archaius.version>
<archaius.version>
0.7.4
</archaius.version>
<eureka.version>
1.4.11
</eureka.version>
<eureka.version>
1.4.11
</eureka.version>
<feign.version>
9.3.1
</feign.version>
<feign.version>
9.3.1
</feign.version>
<hystrix.version>
1.5.
5
</hystrix.version>
<hystrix.version>
1.5.
6
</hystrix.version>
<ribbon.version>
2.2.0
</ribbon.version>
<ribbon.version>
2.2.0
</ribbon.version>
<servo.version>
0.10.1
</servo.version>
<servo.version>
0.10.1
</servo.version>
<zuul.version>
1.2.2
</zuul.version>
<zuul.version>
1.2.2
</zuul.version>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment