ref: 63a2d3e2f8602665941b3b84560489a1566ca4d6
parent: 3d956b3adc6dc8e32cf17e2baa0a2408295ae12f
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Apr 23 10:53:27 EDT 2017
Don't truncate the end of line in the status line.
--- a/lib/http/parse.myr
+++ b/lib/http/parse.myr
@@ -243,7 +243,9 @@
ln# = std.strfstrip(ln#)
end = 0
for var i = 0; i < ln#.len; i++
- if i == ln#.len - 1 || std.isspace(std.decode(ln#[i:]))
+ if i == ln#.len - 1
+ end = i + 1
+ elif std.isspace(std.decode(ln#[i:]))
end = i
break
;;