diff options
author | Eric Wong <normalperson@yhbt.net> | 2012-01-20 09:51:18 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-01-20 21:59:58 +0000 |
commit | 431ea3ecab5f990b00785cd601dd1d8c7d5eb08d (patch) | |
tree | 7497b4e4fca471397dd677dfc42929231f6bbbb4 /http_parser.rl | |
parent | c466749230b60c57a944e9c79c73719e7337810f (diff) | |
download | cmogstored-431ea3ecab5f990b00785cd601dd1d8c7d5eb08d.tar.gz |
Use less confusing field names since we'll eventually support the Range: header for GET requests. Also remove the unused "status" field.
Diffstat (limited to 'http_parser.rl')
-rw-r--r-- | http_parser.rl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http_parser.rl b/http_parser.rl index 717ca5e..f45e0d3 100644 --- a/http_parser.rl +++ b/http_parser.rl @@ -42,9 +42,9 @@ "-" > { http->range_beg = http_digit(http, buf, fpc); } (digit+) > { http->tmp_tip = to_u16(fpc - buf); } "/*" > { http->range_end = http_digit(http, buf, fpc); } - eor > { http->has_range = 1; }; + eor > { http->has_content_range = 1; }; transfer_encoding_chunked = "Transfer-Encoding:"i sep - "chunked"i eor > { http->content_len = -1; }; + "chunked"i eor > { http->chunked = 1; }; trailer = "Trailer:"i sep header_value eor > { http->has_trailer = 1; }; connection = "Connection:"i sep |