diff options
-rw-r--r-- | http.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |