Fix issue with Host header in proxied requests
This commit is contained in:
@@ -195,6 +195,9 @@ public class RibbonRoutingFilter extends ZuulFilter {
|
|||||||
if (headers.containsKey("transfer-encoding"))
|
if (headers.containsKey("transfer-encoding"))
|
||||||
headers.remove("transfer-encoding");
|
headers.remove("transfer-encoding");
|
||||||
|
|
||||||
|
if (headers.containsKey("host"))
|
||||||
|
headers.remove("host");
|
||||||
|
|
||||||
return headers;
|
return headers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user