lib/zold/node/front.rb in zold-0.11.14 vs lib/zold/node/front.rb in zold-0.11.15

- old
+ new

@@ -147,10 +147,10 @@ put %r{/wallet/(?<id>[A-Fa-f0-9]{16})/?} do id = Id.new(params[:id]) wallet = settings.wallets.find(id) request.body.rewind after = request.body.read.to_s - before = wallet.exists? ? AtomicFile.new(wallet.path).read : '' + before = wallet.exists? ? AtomicFile.new(wallet.path).read.to_s : '' if before == after status 304 return end settings.log.info("Wallet #{id} is new: #{before.length}b != #{after.length}b")