Skip to content

Conversation

@iruizr7
Copy link
Contributor

@iruizr7 iruizr7 commented Apr 18, 2025

Previous code always assumed that request's bodies were UTF-8 parseable.

This change allows body copying when possible, but unblocks request which does not have a UTF-8 decodable body.

For the rest of use-cases, for example, when only introducing some headers, bodyBytes passes unmodified and the body getter is never called, and a UTF-8 decoding exception avoided.

@CodingAleCR CodingAleCR requested a review from Copilot April 21, 2025 14:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • lib/extensions/request.dart: Language not supported

@CodingAleCR
Copy link
Owner

@allcontributors add @iruizr7 for code

@allcontributors
Copy link
Contributor

@CodingAleCR

I've put up a pull request to add @iruizr7! 🎉

@CodingAleCR CodingAleCR merged commit 21c5a41 into CodingAleCR:main Apr 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants