summaryrefslogtreecommitdiff
path: root/lib/http
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-04-23 14:53:27 -0700
committerOri Bernstein <ori@eigenstate.org>2017-04-23 14:53:27 -0700
commit63a2d3e2f8602665941b3b84560489a1566ca4d6 (patch)
tree4f7e36e404ac4fa2c54adbe40b2777e529ef2f9c /lib/http
parent3d956b3adc6dc8e32cf17e2baa0a2408295ae12f (diff)
downloadmc-63a2d3e2f8602665941b3b84560489a1566ca4d6.tar.gz
Don't truncate the end of line in the status line.
Diffstat (limited to 'lib/http')
-rw-r--r--lib/http/parse.myr4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/http/parse.myr b/lib/http/parse.myr
index 240871d..ca72027 100644
--- a/lib/http/parse.myr
+++ b/lib/http/parse.myr
@@ -243,7 +243,9 @@ const parseword = {ln
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
;;