We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52ab78d commit d3ba538Copy full SHA for d3ba538
handler/handler_test.go
@@ -534,6 +534,25 @@ func TestNew(t *testing.T) {
534
return nil
535
},
536
537
+ {
538
+ name: "check originlog is used",
539
+ args: args{
540
+ cfg: config.Proxy{
541
+ OriginLog: config.OriginLog{
542
+ StatusCode: config.StatusCode{
543
+ Enable: true,
544
+ Exclude: []int{},
545
+ },
546
547
548
549
+ checkFunc: func(h http.Handler) error {
550
+ if h.(*httputil.ReverseProxy).ModifyResponse == nil {
551
+ return errors.Errorf("unexpected ModifyResponse")
552
+ }
553
+ return nil
554
555
556
}
557
for _, tt := range tests {
558
t.Run(tt.name, func(t *testing.T) {
0 commit comments