diff --git a/TODO.md b/TODO.md index fa27a93..2f35f49 100644 --- a/TODO.md +++ b/TODO.md @@ -10,8 +10,12 @@ * fix overcomplicated and probably incorrect implementation * support TLS and plain at the same time?? * really close connections after sending response?? + * fixed size buffer is probably bad +* compact peer representation in announce response * scrape info hash parsing: multiple ought to be accepted * move stuff to common crate with ws: what about Request/InMessage etc? +* info hashes, peer ids: verify that they are 20 bytes +* AnnounceRequest.compact: parse int to bool ## aquatic_ws * tests diff --git a/aquatic_http/src/lib/protocol/mod.rs b/aquatic_http/src/lib/protocol/mod.rs index 20ca46b..8bf5488 100644 --- a/aquatic_http/src/lib/protocol/mod.rs +++ b/aquatic_http/src/lib/protocol/mod.rs @@ -161,6 +161,7 @@ impl Request { #[derive(Debug, Clone, Serialize)] +#[serde(untagged)] pub enum Response { AnnounceSuccess(AnnounceResponseSuccess), AnnounceFailure(AnnounceResponseFailure),