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: file is always null when using a server via tcp #112

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

Gamewalker
Copy link

fix: file is always null when a file is turned into a stream and then sent to a server

@renchey
Copy link

renchey commented May 3, 2023

I still had issues with this, but it pointed me in the right direction!

The following worked for me as I was using a callback

return hasCb ? cb(null, file, {...isInfected, file}, []) : resolve({ ...isInfected, file});

@kylefarris kylefarris merged commit 2158c40 into kylefarris:master Mar 18, 2024
@kylefarris
Copy link
Owner

Looks great! Thanks! (And sorry for the delay)

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