feat: support baggage propagation in httpc (#2375)
* feat: support baggage propagation in httpc * chore: use go 1.16 * chore: use go 1.16 * chore: use go ^1.16 * chore: remove deprecated
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"net/http"
|
||||
"net/http/httputil"
|
||||
@@ -180,7 +179,7 @@ func logBrief(r *http.Request, code int, timer *utils.ElapsedTimer, logs *intern
|
||||
if !ok {
|
||||
fullReq := dumpRequest(r)
|
||||
limitReader := io.LimitReader(strings.NewReader(fullReq), limitBodyBytes)
|
||||
body, err := ioutil.ReadAll(limitReader)
|
||||
body, err := io.ReadAll(limitReader)
|
||||
if err != nil {
|
||||
buf.WriteString(fmt.Sprintf("\n%s", fullReq))
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user