@@ -79,6 +79,9 @@ func (h *HTTPRoundTripLogger) RoundTrip(req *http.Request) (*http.Response, erro
7979}
8080
8181func bodyToString(body io.ReadCloser) string {
82+ if body == nil {
83+ return ""
84+ }
8285 src, err := io.ReadAll(body)
8386 if err != nil {
8487 slog.Error("Failed to read body", "error", err)