about summary refs log tree commit homepage
path: root/cmogstored.h
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-11-09 00:51:32 +0000
committerEric Wong <e@80x24.org>2015-11-09 05:34:22 +0000
commitf715f6f228f9da83309a515a94de26fa3766b230 (patch)
tree18632edeabb25092a733a4d96a362e62f52b95a5 /cmogstored.h
parent225d5fb10474d853261b6ee2f9ceeff9c2bd73c6 (diff)
downloadcmogstored-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.h3
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;