about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--httpd.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/httpd.h b/httpd.h
index 58db400..9b4ebe7 100644
--- a/httpd.h
+++ b/httpd.h
@@ -771,11 +771,10 @@ static enum mw_qev h1_drain_input(struct mw_h1 *h1, struct mw_h1req *h1r)
         if (h1r) { /* initial */
                 ssize_t overread = h1r->rbuf_len - h1r->pret;
                 mwrap_assert(overread >= 0);
-                if ((size_t)overread <= h1->in_len) {
+                if ((size_t)overread <= h1->in_len)
                         h1->in_len -= overread;
-                } else { /* TODO: deal with pipelined requests */
+                else /* pipelining not supported */
                         return h1_400(h1);
-                }
         } else { /* continue dealing with a trickle */
                 h1r = h1->h1r;
                 mwrap_assert(h1r);