signer/core: fix unconditional http request metadata scheme overwrite (#34653)
Some checks are pending
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run
/ Keeper Build (push) Waiting to run
/ Windows Build (push) Waiting to run
/ Docker Image (push) Waiting to run

This commit is contained in:
cui 2026-05-18 22:30:41 +08:00 committed by GitHub
parent d4027f3d46
commit 3d1e6aa6c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -196,8 +196,9 @@ func MetadataFromContext(ctx context.Context) Metadata {
if info.Transport != "" { if info.Transport != "" {
if info.Transport == "http" { if info.Transport == "http" {
m.Scheme = info.HTTP.Version m.Scheme = info.HTTP.Version
} else {
m.Scheme = info.Transport
} }
m.Scheme = info.Transport
} }
if info.RemoteAddr != "" { if info.RemoteAddr != "" {
m.Remote = info.RemoteAddr m.Remote = info.RemoteAddr