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
3e98c78c
Commit
3e98c78c
authored
Apr 17, 2015
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add PATCH to SimpleHostRoutingFilter
fixes gh-307
parent
6dce075e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
SimpleHostRoutingFilter.java
...d/netflix/zuul/filters/route/SimpleHostRoutingFilter.java
+8
-0
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/filters/route/SimpleHostRoutingFilter.java
View file @
3e98c78c
...
@@ -43,11 +43,13 @@ import javax.servlet.http.HttpServletRequest;
...
@@ -43,11 +43,13 @@ import javax.servlet.http.HttpServletRequest;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
lombok.extern.apachecommons.CommonsLog
;
import
lombok.extern.apachecommons.CommonsLog
;
import
org.apache.http.Header
;
import
org.apache.http.Header
;
import
org.apache.http.HttpHost
;
import
org.apache.http.HttpHost
;
import
org.apache.http.HttpRequest
;
import
org.apache.http.HttpRequest
;
import
org.apache.http.HttpResponse
;
import
org.apache.http.HttpResponse
;
import
org.apache.http.client.HttpClient
;
import
org.apache.http.client.HttpClient
;
import
org.apache.http.client.methods.HttpPatch
;
import
org.apache.http.client.methods.HttpPost
;
import
org.apache.http.client.methods.HttpPost
;
import
org.apache.http.client.methods.HttpPut
;
import
org.apache.http.client.methods.HttpPut
;
import
org.apache.http.client.params.ClientPNames
;
import
org.apache.http.client.params.ClientPNames
;
...
@@ -206,6 +208,12 @@ public class SimpleHostRoutingFilter extends ZuulFilter {
...
@@ -206,6 +208,12 @@ public class SimpleHostRoutingFilter extends ZuulFilter {
httpPut
.
setEntity
(
new
InputStreamEntity
(
requestEntity
,
request
httpPut
.
setEntity
(
new
InputStreamEntity
(
requestEntity
,
request
.
getContentLength
()));
.
getContentLength
()));
break
;
break
;
case
"PATCH"
:
HttpPatch
httpPatch
=
new
HttpPatch
(
uri
+
getQueryString
());
httpRequest
=
httpPatch
;
httpPatch
.
setEntity
(
new
InputStreamEntity
(
requestEntity
,
request
.
getContentLength
()));
break
;
default
:
default
:
httpRequest
=
new
BasicHttpRequest
(
verb
,
uri
+
getQueryString
());
httpRequest
=
new
BasicHttpRequest
(
verb
,
uri
+
getQueryString
());
log
.
debug
(
uri
+
getQueryString
());
log
.
debug
(
uri
+
getQueryString
());
...
...
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