mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-18 22:09:26 +00:00
signer/core: fix unconditional http request metadata scheme overwrite (#34653)
This commit is contained in:
parent
d4027f3d46
commit
3d1e6aa6c3
1 changed files with 2 additions and 1 deletions
|
|
@ -196,8 +196,9 @@ func MetadataFromContext(ctx context.Context) Metadata {
|
|||
if info.Transport != "" {
|
||||
if info.Transport == "http" {
|
||||
m.Scheme = info.HTTP.Version
|
||||
} else {
|
||||
m.Scheme = info.Transport
|
||||
}
|
||||
m.Scheme = info.Transport
|
||||
}
|
||||
if info.RemoteAddr != "" {
|
||||
m.Remote = info.RemoteAddr
|
||||
|
|
|
|||
Loading…
Reference in a new issue