avoid logging gzipped body in trace output (#16172)

This commit is contained in:
Harshavardhana
2022-12-05 13:21:27 -08:00
committed by GitHub
parent 180d6b30ca
commit 419f351df3
2 changed files with 15 additions and 7 deletions

View File

@@ -67,6 +67,6 @@ func (r *RequestRecorder) Data() []byte {
if r.LogBody {
return r.buf.Bytes()
}
// ... otherwise we return <BODY> placeholder
return BodyPlaceHolder
// ... otherwise we return <BLOB> placeholder
return blobBody
}