Skip to content
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: use reader for bytes http response transformation #702

Merged
merged 1 commit into from
Mar 11, 2024

Commits on Jan 10, 2024

  1. fix: use reader for bytes http response transformation

    The From implementation to transform a ureq::Response into an
    http::Response<Vec<u8>> is using the into_string() method. This method
    only allows for UTF-8 characters in the body payload, thus the
    result is inconsistent for non UTF-8 characters like protobuffers (binary).
    
    The proposed solution uses the reader instead of transforming the input
    into a UTF-8 character.
    rogercoll committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    b4e13dd View commit details
    Browse the repository at this point in the history