diff options
| author | eunhhu <[email protected]> | 2026-10-19 07:34:12 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-10-19 07:34:12 +0100 |
| commit | 30eed7886769d838a5d51b70c764c532ca023b1c (patch) | |
| tree | 38ae2b811d56c217bb4ebf0c843046390d207ecd /examples/http.aup | |
| parent | 1c3b2475ca2008b7a68e7fbd6281b59fa84a286c (diff) | |
| download | aup-30eed7886769d838a5d51b70c764c532ca023b1c.tar.gz aup-30eed7886769d838a5d51b70c764c532ca023b1c.zip | |
140's apps written with the frictions gone: inflate's and linebreak's lists declared together, linebreak's 0x2010 and 0x25CC (their modules the same), DNS's records = [] and 0xc000, HTTP's trailers, j = fields(...), RFC 6298's abs and tick.period (G written once), layout's lists together, its boxes and root as targets together, boxes = []; lines 121 to 120, 148 to 146, 176 to 169, 116 to 110; instructions within 0.2%
Diffstat (limited to 'examples/http.aup')
| -rw-r--r-- | examples/http.aup | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/http.aup b/examples/http.aup index e2c2045..863ff9b 100644 --- a/examples/http.aup +++ b/examples/http.aup @@ -124,10 +124,8 @@ fn request(d) -> Request, number { for k in semi .. c { require d[k] != 10 } require n <= 2147483648 # 2^31 at most: ours, not h11's if n == 0 { - let t, after = fields(d, c + 2) - if after < 0 { return Request {}, -1 } - for f in t { trailers.append(f) } - j = after + trailers, j = fields(d, c + 2) + if j < 0 { return Request {}, -1 } more = false } else { if d.bytes < c + 4 + n { return Request {}, -1 } |
