diff options
-rw-r--r-- | lib/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c index d0d3bc1ea..00b91a5d3 100644 --- a/lib/http.c +++ b/lib/http.c @@ -947,7 +947,7 @@ CURLcode add_buffer_send(send_buffer *in, headersize = size - included_body_bytes; /* the initial part that isn't body is header */ - DEBUGASSERT(headersize > 0); + DEBUGASSERT(size > included_body_bytes); #ifdef CURL_DOES_CONVERSIONS res = Curl_convert_to_network(conn->data, ptr, headersize); |