]> Sergey Matveev's repositories - btrtrc.git/commit
bencode: Don't skip encoding nil pointers and interfaces
authorMatt Joiner <anacrolix@gmail.com>
Sun, 18 Oct 2015 14:28:36 +0000 (01:28 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 18 Oct 2015 14:28:36 +0000 (01:28 +1100)
commit4b539b1f117ed1e96ca8f7c5d765fbfd0fc61d7a
tree3e366651b9386bb5004332721b718d4b1764928d
parentddf7cbbdaca3f4ef0fa066863b76ec2647058814
bencode: Don't skip encoding nil pointers and interfaces

This caused an annoying bug for complex types where dictionary values went missing.
bencode/encode.go
bencode/encode_test.go