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: incomplete streamReader read #30

Merged
merged 3 commits into from
Nov 26, 2020
Merged

fix: incomplete streamReader read #30

merged 3 commits into from
Nov 26, 2020

Conversation

fsamin
Copy link
Member

@fsamin fsamin commented Nov 26, 2020

Signed-off-by: francois samin [email protected]

@fsamin fsamin requested a review from loopfz November 26, 2020 09:21
Signed-off-by: francois  samin <[email protected]>
res.Body.Close()

dest := new(bytes.Buffer)
err = k.DecryptPipe(bytes.NewReader(body), dest)
Copy link
Member

Choose a reason for hiding this comment

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

Do you need to use ioutil.ReadAll before? I assume DecryptPipe could use res.Body directly

Copy link
Member Author

Choose a reason for hiding this comment

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

you are right, it is fixed

Signed-off-by: francois  samin <[email protected]>
@fsamin fsamin merged commit 2b81caa into master Nov 26, 2020
@fsamin fsamin deleted the fix/streamReader branch March 14, 2023 09:39
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.

3 participants