aquatic http: use serde_bencode for deserialization

bendy seems not to manage lack of trailing newline
This commit is contained in:
Joakim Frostegård 2020-08-12 04:26:09 +02:00
parent 7a96313173
commit bc5cd90371
3 changed files with 15 additions and 3 deletions

View file

@ -184,8 +184,8 @@ impl Response {
Response::Scrape(r) => r.write(output),
}
}
pub fn from_bytes(bytes: &[u8]) -> Result<Self, ::bendy::serde::Error> {
::bendy::serde::de::from_bytes(bytes)
pub fn from_bytes(bytes: &[u8]) -> Result<Self, ::serde_bencode::Error> {
::serde_bencode::from_bytes(bytes)
}
}