From 1dfe828cdf519c1542764a730d1c4e816d15b864 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 22 Aug 2026 02:25:43 +0200 Subject: [PATCH] Do not assert on zero content length in HttpRequest. --- profiler/src/HttpRequest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/profiler/src/HttpRequest.cpp b/profiler/src/HttpRequest.cpp index 0a150da6..759cfaf2 100644 --- a/profiler/src/HttpRequest.cpp +++ b/profiler/src/HttpRequest.cpp @@ -1,4 +1,3 @@ -#include #include #include #include @@ -128,7 +127,7 @@ void HttpRequest( const char* server, const char* resource, int port, const std: break; } } - assert( contentLength != 0 ); + if( contentLength <= 0 ) return; for(;;) { while( hdr + 2 <= hdrEnd && memcmp( hdr, CRLF, 2 ) != 0 ) hdr++;