File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 1
1
using k8s ;
2
+ using Microsoft . AspNetCore . Http ;
2
3
using Microsoft . Extensions . FileProviders ;
3
4
using Microsoft . Extensions . Primitives ;
4
5
using System ;
5
6
using System . Collections . Generic ;
6
7
using System . Linq ;
7
8
using System . Text ;
9
+ using System . Threading ;
8
10
using System . Threading . Tasks ;
9
11
using Yarp . ReverseProxy . Configuration ;
10
12
using Yarp . ReverseProxy . Transforms ;
@@ -48,6 +50,15 @@ public IngressProxyConfig(ServiceManager manager)
48
50
var cluster = new ClusterConfig
49
51
{
50
52
ClusterId = id ,
53
+ HttpClient = new HttpClientConfig
54
+ {
55
+ RequestHeaderEncoding = "utf-8"
56
+ } ,
57
+ HttpRequest = new Yarp . ReverseProxy . Forwarder . ForwarderRequestConfig
58
+ {
59
+ AllowResponseBuffering = false ,
60
+ ActivityTimeout = Timeout . InfiniteTimeSpan ,
61
+ } ,
51
62
Destinations = new Dictionary < string , DestinationConfig >
52
63
{
53
64
[ serviceName ] = new DestinationConfig
You can’t perform that action at this time.
0 commit comments