signer/core: uncoditionally overwrites scheme

This commit is contained in:
Weixie Cui 2026-04-03 22:57:11 +08:00
parent bcb0efd756
commit 389ec894af

View file

@ -196,9 +196,10 @@ 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
} }