[edge] Fetch: accept up to 1000 informational heads (Go has no count limit); KD-10 beyond
This commit is contained in:
@@ -11,7 +11,8 @@
|
||||
//! - `Authorization: Bearer good` → 200 with identity; any other Authorization → 401 + WWW-Authenticate
|
||||
//! - cookie `authelia_session=good` → 200 with identity; `nameless` → 200 without identity;
|
||||
//! `forbidden` → 403
|
||||
//! - misbehaving answers, by cookie: `continue-ok` (100 Continue, then 200), `big-ok` /
|
||||
//! - misbehaving answers, by cookie: `continue-ok` (100 Continue, then 200), `continue-xN`
|
||||
//! (N × 102 Processing, then 200), `big-ok` /
|
||||
//! `big-deny` (200 / 401 with a 5 MB body), `truncated-ok` (200 whose body is cut short),
|
||||
//! `switch` (101 Switching Protocols), `hang` (never answers)
|
||||
//! - otherwise GET/HEAD → 302 to the portal with `rd`, other methods → 401
|
||||
@@ -106,6 +107,13 @@ fn decide(req: &Recorded) -> Reply {
|
||||
b.extend(allowed(true));
|
||||
b
|
||||
}
|
||||
s if s.starts_with("continue-x") => {
|
||||
// `continue-xN`: N informational heads (102 Processing), then 200.
|
||||
let n: usize = s["continue-x".len()..].parse().unwrap_or(1);
|
||||
let mut b = b"HTTP/1.1 102 Processing\r\n\r\n".repeat(n);
|
||||
b.extend(allowed(true));
|
||||
b
|
||||
}
|
||||
"big-ok" => {
|
||||
let mut hs: Vec<(&str, &str)> = vec![("X-Sent-Content-Type", "none")];
|
||||
hs.extend(IDENTITY);
|
||||
|
||||
Reference in New Issue
Block a user