We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The function body at https://github.com/ethereum/swarm-dapps/blob/master/examples/album/file-manager.js#L104 does not handle errors and assigns i with the http response even if the status is different from 200 and the response is not a hash. A sanity check similar to https://github.com/ethereum/swarm-dapps/blob/master/examples/album/file-manager.js#L22 would probably do the trick. In fact, it would be nice to have a common code for PUT-ting a file and then receiving and checking a hash.
i
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The function body at
https://github.com/ethereum/swarm-dapps/blob/master/examples/album/file-manager.js#L104
does not handle errors and assigns
i
with the http response even if the status is different from 200 and the response is not a hash. A sanity check similar tohttps://github.com/ethereum/swarm-dapps/blob/master/examples/album/file-manager.js#L22
would probably do the trick. In fact, it would be nice to have a common code for PUT-ting a file and then receiving and checking a hash.
The text was updated successfully, but these errors were encountered: