-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Invalid data: Missing delimiter ":" [0x3a] #36
Comments
Okay, the problem in this case is that there is (at least to my knowledge) no way to store a boolean in bencode. But we surely need to handle this better. What would be the best way to handle it? I'd vote for (c) because at least "0 == false" works. If we are doing strings, "'false' == false" will fail. |
I'd go with option (c) as well - seems the least intrusive while still being compatible with the spec. Option (a) would seem more correct to me, but less convenient. |
Someone (@kaelar) already implemented that in the @bittorrent fork of this project (bittorrent@f3f75a3). |
Oh, wasn't aware of that. @kaelar, fancy sending a PR our way? |
It's now fixed & published as |
Hi,
In the following code:
I'm getting:
Any object containing a boolean as a value on any key causes decode to fail.
The text was updated successfully, but these errors were encountered: