Skip to content

Commit

Permalink
Fixed: removed invasive logging in transport/http/headers.go (#2089)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Wilhelm authored Aug 4, 2021
1 parent f626339 commit 3835140
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions transport/http/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
package http

import (
"log"
"net/http"
"strings"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3835140

Please sign in to comment.