about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-12-12 11:40:55 +0000
committerEric Wong <mwrap-perl@80x24.org>2022-12-12 20:58:43 +0000
commit0248c9828349ac8539b3aaad297aac71e8627c2f (patch)
treec27ddf8318f09d8e742c15ad5587f24cd3f10d90
parent2c48648ab0c9cfadaa7f68123e84e986f12d2741 (diff)
downloadmwrap-0248c9828349ac8539b3aaad297aac71e8627c2f.tar.gz
-rw-r--r--mwrap_httpd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mwrap_httpd.h b/mwrap_httpd.h
index b0adf6a..6d40d6c 100644
--- a/mwrap_httpd.h
+++ b/mwrap_httpd.h
@@ -53,11 +53,11 @@ struct mw_wbuf { /* for response headers + bodies */
 struct mw_h1req { /* HTTP/1.x request (TSD in common (fast) case) */
         const char *method, *path, *qstr;
         size_t method_len, path_len, qlen;
-        uint16_t rbuf_len;
+        uint16_t rbuf_len; /* capped by MW_RBUF_SIZE */
         int pret, minor_ver;
         size_t nr_hdr;
         struct phr_header hdr[MW_NR_NAME];
-        char rbuf[MW_RBUF_SIZE]; /* read(2) in to thi */
+        char rbuf[MW_RBUF_SIZE]; /* read(2) in to this */
 };
 
 struct mw_h1 { /* each HTTP/1.x client (heap) */