diff options
author | Eric Wong <e@80x24.org> | 2015-11-09 00:51:32 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-11-09 05:34:22 +0000 |
commit | f715f6f228f9da83309a515a94de26fa3766b230 (patch) | |
tree | 18632edeabb25092a733a4d96a362e62f52b95a5 /cmogstored.h | |
parent | 225d5fb10474d853261b6ee2f9ceeff9c2bd73c6 (diff) | |
download | cmogstored-f715f6f228f9da83309a515a94de26fa3766b230.tar.gz |
For completely unparseable Range: headers, we'll ignore them entirely as nginx does. However, if /bytes=/ is matched, we'll start returning 416 errors instead of 400.
Diffstat (limited to 'cmogstored.h')
-rw-r--r-- | cmogstored.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmogstored.h b/cmogstored.h index a7309b5..5aa7c01 100644 --- a/cmogstored.h +++ b/cmogstored.h @@ -204,9 +204,10 @@ struct mog_http { unsigned has_md5:1; unsigned has_content_range:1; /* for PUT */ unsigned has_range:1; /* for GET */ + unsigned bad_range:1; unsigned skip_rbuf_defer:1; enum mog_chunk_state chunk_state:2; - unsigned unused_padding:3; + unsigned unused_padding:2; uint8_t path_tip; uint8_t path_end; uint16_t line_end; |