Fix the PUT-existing bug in writable gateway API
See on https://discuss.ipfs.io/t/writeable-http-gateways/210 Previously, a PUT to a filename that already exists would return the hash of the newly-inserted file instead of the hash of the new tree. This is not useful, and it makes much more sense for the API to be consistent. Furthermore, anybody who knows about the bug is already DELETE-ing the filename before PUT-ing the new content, so the fix doesn't trample over that behaviour either. With this fix, every conceivable usage of the API is either unaffected or improved. It could do with a unit test. License: MIT Signed-off-by:James Stanley <james@incoherency.co.uk>
正在显示
请
注册
或者
登录
后发表评论