Fixed bug with pocket gemini
This commit is contained in:
@@ -27,11 +27,10 @@ impl Connection {
|
|||||||
Some(m) => m,
|
Some(m) => m,
|
||||||
None => &stat.to_str(),
|
None => &stat.to_str(),
|
||||||
};
|
};
|
||||||
let mut s = format!("{}\t{}\r\n", stat as u8, meta);
|
self.send_raw(format!("{}\t{}\r\n", stat as u8, meta).as_bytes()).await?;
|
||||||
if let Some(b) = body {
|
if let Some(b) = body {
|
||||||
s += &b;
|
self.send_raw(b.as_bytes()).await?;
|
||||||
}
|
}
|
||||||
self.send_raw(s.as_bytes()).await?;
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user