Skip to content

fix: Fixed functions of decodeJson do not return. #1002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from

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