@@ -34,7 +34,7 @@ func TestRun_NormalizesExternalURLTrailingSlash(t *testing.T) {
3434 for _ , tt := range cases {
3535 t .Run (tt .name , func (t * testing.T ) {
3636 var receivedURL string
37- newProxyRouter = func (externalURL string , proxyHandler http.Handler , publicKey * rsa.PublicKey , proxyHeaders http.Header , httpStreamingOnly bool , headerMapping map [string ]string , headerMappingBase string ) (* proxy.ProxyRouter , error ) {
37+ newProxyRouter = func (externalURL string , proxyHandler http.Handler , publicKey * rsa.PublicKey , proxyHeaders http.Header , httpStreamingOnly bool , forwardAuthorizationHeader bool , headerMapping map [string ]string , headerMappingBase string ) (* proxy.ProxyRouter , error ) {
3838 receivedURL = externalURL
3939 return nil , errors .New ("stop early" )
4040 }
@@ -46,7 +46,7 @@ func TestRun_NormalizesExternalURLTrailingSlash(t *testing.T) {
4646 "" , "" , nil , nil ,
4747 "" , "" , nil , nil ,
4848 "" , "" , "" , nil , "" , "" , nil , nil , nil , nil ,
49- false , "" , "" , nil , nil , "" ,
49+ false , "" , "" , nil , nil , "" , false ,
5050 []string {"http://example.com" }, false , nil , "/userinfo" ,
5151 )
5252
@@ -70,7 +70,7 @@ func TestRun_PassesHTTPStreamingOnlyToProxyRouter(t *testing.T) {
7070 })
7171
7272 var streamingOnlyReceived bool
73- newProxyRouter = func (externalURL string , proxyHandler http.Handler , publicKey * rsa.PublicKey , proxyHeaders http.Header , httpStreamingOnly bool , headerMapping map [string ]string , headerMappingBase string ) (* proxy.ProxyRouter , error ) {
73+ newProxyRouter = func (externalURL string , proxyHandler http.Handler , publicKey * rsa.PublicKey , proxyHeaders http.Header , httpStreamingOnly bool , forwardAuthorizationHeader bool , headerMapping map [string ]string , headerMappingBase string ) (* proxy.ProxyRouter , error ) {
7474 streamingOnlyReceived = httpStreamingOnly
7575 return nil , errors .New ("proxy router init failed" )
7676 }
@@ -112,6 +112,7 @@ func TestRun_PassesHTTPStreamingOnlyToProxyRouter(t *testing.T) {
112112 nil ,
113113 nil ,
114114 "" ,
115+ false ,
115116 []string {"http://example.com" },
116117 true ,
117118 nil ,
0 commit comments