about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--http.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/http.c b/http.c
index a4c2cb8..5509e08 100644
--- a/http.c
+++ b/http.c
@@ -64,6 +64,9 @@ http_process_client(struct mog_fd *mfd, char *buf, size_t buf_len)
 {
         struct mog_http *http = &mfd->as.http;
 
+        assert(http->wbuf == NULL &&
+               "processing client with buffered data");
+
         switch (http->_p.http_method) {
         case MOG_HTTP_METHOD_NONE: assert(0 && "BUG: unset HTTP method");
         case MOG_HTTP_METHOD_GET: mog_http_get_open(mfd, buf); break;