Skip to content

Conversation

@Khachi-at
Copy link
Contributor

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.

response.go Outdated
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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jeevatkm Hello, the PR has been updated.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks @Khachi-at for addressing.

@jeevatkm jeevatkm added this to the v3.0.0 Milestone milestone May 1, 2025
@codecov
Copy link

codecov bot commented Nov 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.85%. Comparing base (c639081) to head (ab81ad6).
⚠️ Report is 5 commits behind head on v3.

Additional details and impacted files
@@            Coverage Diff             @@
##               v3    #1002      +/-   ##
==========================================
+ Coverage   99.82%   99.85%   +0.03%     
==========================================
  Files          18       18              
  Lines        3896     3362     -534     
==========================================
- Hits         3889     3357     -532     
+ Misses          5        3       -2     
  Partials        2        2              
Flag Coverage Δ
unittests 99.85% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jeevatkm jeevatkm merged commit e818fa8 into go-resty:v3 Nov 8, 2025
6 checks passed
This was referenced Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug v3 For resty v3

Development

Successfully merging this pull request may close these issues.

2 participants