[edge] Reload and share links: in-process config swap with self-reverting trials, admin socket with health and certificate status, share-link cookies, visitor pages and throttle
This commit is contained in:
@@ -52,12 +52,13 @@ pub fn parse_response(raw: &[u8]) -> io::Result<Resp> {
|
||||
{
|
||||
let mut out = Vec::new();
|
||||
let mut rest = &body[..];
|
||||
loop {
|
||||
let Some(p) = rest.windows(2).position(|w| w == b"\r\n") else {
|
||||
break;
|
||||
};
|
||||
while let Some(p) = rest.windows(2).position(|w| w == b"\r\n") {
|
||||
let size = usize::from_str_radix(
|
||||
String::from_utf8_lossy(&rest[..p]).split(';').next().unwrap_or("0").trim(),
|
||||
String::from_utf8_lossy(&rest[..p])
|
||||
.split(';')
|
||||
.next()
|
||||
.unwrap_or("0")
|
||||
.trim(),
|
||||
16,
|
||||
)
|
||||
.map_err(other)?;
|
||||
|
||||
Reference in New Issue
Block a user