]> Sergey Matveev's repositories - btrtrc.git/commit
bencode: When decoding a dict, if the final key is missing its value, don't treat...
authorMatt Joiner <anacrolix@gmail.com>
Thu, 1 Oct 2015 14:13:43 +0000 (00:13 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 1 Oct 2015 14:13:43 +0000 (00:13 +1000)
commit28c1536daff0e33714235aa1961bece3f3f46930
tree14217046e5e873f5e32a58d204874de244c59277
parentb7a8bb7570a5c667b5fb6d29bf0b4b142eaedbdb
bencode: When decoding a dict, if the final key is missing its value, don't treat that as an error.

I think I'm swayed here by the robustness principle/Postel's Law.
bencode/decode.go
bencode/decode_test.go