From 383514004b9ed3ce2c57f573bf528f8891f85bbe Mon Sep 17 00:00:00 2001 From: Alexandre Wilhelm Date: Wed, 4 Aug 2021 09:24:41 -0700 Subject: [PATCH] Fixed: removed invasive logging in transport/http/headers.go (#2089) --- transport/http/header.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/transport/http/header.go b/transport/http/header.go index 8ef87644c..1464058ce 100644 --- a/transport/http/header.go +++ b/transport/http/header.go @@ -21,7 +21,6 @@ package http import ( - "log" "net/http" "strings" @@ -78,9 +77,8 @@ func (hm headerMapper) deleteHTTP2PseudoHeadersIfNeeded(from transport.Headers) // :authority -> even if the RFC advises to copy :authority into host header, it is safe to remove it // here. Host of the request is controlled through the YARPC outbound configuration. for _, k := range _http2PseudoHeaders { - if v, ok := from.Get(k); ok { + if _, ok := from.Get(k); ok { from.Del(k) - log.Printf("WARN: HTTP2 pseudo-header %s:%s was deleted", k, v) } } return from