mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic http: use serde_bencode for deserialization
bendy seems not to manage lack of trailing newline
This commit is contained in:
parent
7a96313173
commit
bc5cd90371
3 changed files with 15 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue