Set grpc :authority header from request header (#8912)

This is to fix that the `:authority` header is  set to `upstream_balancer`
This commit is contained in:
Junrui Chen 2023-06-27 16:30:30 +10:00 committed by GitHub
parent 643c475db0
commit a21b5218a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -120,6 +120,7 @@ var _ = framework.DescribeAnnotation("backend-protocol - GRPC", func() {
metadata := res.GetMetadata()
assert.Equal(ginkgo.GinkgoT(), metadata["content-type"].Values[0], "application/grpc")
assert.Equal(ginkgo.GinkgoT(), metadata[":authority"].Values[0], host)
})
ginkgo.It("authorization metadata should be overwritten by external auth response headers", func() {