Improve converter
This commit is contained in:
parent
79fc5930ea
commit
ae68283858
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ public class BencodeConverter{
|
|||
List<Object> list = BencodeConverter.BENCODE.decode(bytes,Type.LIST);
|
||||
for(int i=0;i<list.size();i++){
|
||||
if(i%2==0){
|
||||
list.set(i,String.valueOf(list.get(i)));
|
||||
list.set(i,BencodeConverter.walkAndConvertByteBufferToByteArrayOrString((list.get(i))));
|
||||
}
|
||||
}
|
||||
bytes = BencodeConverter.BENCODE.encode(list);
|
||||
|
|
Loading…
Add table
Reference in a new issue