diff --git a/transport/round_trippers.go b/transport/round_trippers.go index a272753ae2..abfb7ad6cb 100644 --- a/transport/round_trippers.go +++ b/transport/round_trippers.go @@ -340,6 +340,7 @@ func (r *requestInfo) toCurl() string { headers := "" for key, values := range r.RequestHeaders { for _, value := range values { + value = maskValue(key, value) headers += fmt.Sprintf(` -H %q`, fmt.Sprintf("%s: %s", key, value)) } }