Skip to content

Conversation

Khachi-at
Copy link

Fixed the issuce

Copy link
Member

@jeevatkm jeevatkm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Khachi-at Thanks for the PR. Please see my comment.

@@ -265,7 +265,7 @@ func (r *Response) wrapCopyReadCloser() {
f: func(b *bytes.Buffer) {
r.bodyBytes = append([]byte{}, b.Bytes()...)
closeq(r.Body)
r.Body = &nopReadCloser{r: bytes.NewReader(r.bodyBytes)}
r.Body = io.NopCloser(bytes.NewReader(r.bodyBytes))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Khachi-at nopReadCloser has a functionality. If any issues, we have to fix that instead of replacing it with io.NopCloser.
If you're interested in finding a fix, kindly update the PR. Otherwise, let me know. I will have a look at #1001.

@jeevatkm jeevatkm added this to the v3.0.0 Milestone milestone May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants