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
Fix redirect request body mismatch with origin request body caused by buffer reused by mistake #568
Fix redirect request body mismatch with origin request body caused by buffer reused by mistake #568
Conversation
Codecov Report
@@ Coverage Diff @@
## master #568 +/- ##
==========================================
- Coverage 95.94% 95.80% -0.14%
==========================================
Files 10 10
Lines 1357 1360 +3
==========================================
+ Hits 1302 1303 +1
- Misses 34 35 +1
- Partials 21 22 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Anyone can help? |
@jeevatkm Sept 22 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice catch!
b996aaa
to
4a0f1a3
Compare
@segevda thanks for the review |
@segevda will this fix be merged? This bug affects our production code. |
@bbrodriges unfortunately I don't have merge capabilities for this repo. Maybe @jeevatkm or @moorereason can take a look..? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liguangbo Thanks for you PR and contribution. I'm sorry for the delayed attention.
Can please resolve the review comment?
9c1deaf
to
2e0dbde
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @liguangbo, I have updated the line.
@jeevatkm Sorry for didn't see the notification. Happy to contribute to resty. |
As issue #567 described.
Copy the body buffer by buffer.Write to fix body mismatch with origin request when 307 or 308 redirect.
closes #567