From 9a9da5c081f6c2a50f0b8c024784de731d5967c0 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Tue, 12 Nov 2013 10:59:36 +0000 Subject: [PATCH] Bugfix in HTTP library: receive all data on non-chunked transfer. (bug in #4168) git-svn-id: svn://kolibrios.org@4217 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/libraries/http/http.asm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/develop/libraries/http/http.asm b/programs/develop/libraries/http/http.asm index 496d23d261..f8f847d89b 100644 --- a/programs/develop/libraries/http/http.asm +++ b/programs/develop/libraries/http/http.asm @@ -719,10 +719,10 @@ proc HTTP_process identifier ;////////////////////////////////////////////////// ; Check if we got all the data. .header_parsed: add [ebp + http_msg.content_received], eax - mov eax, [ebp + http_msg.content_length] - cmp eax, [ebp + http_msg.content_received] + mov eax, [ebp + http_msg.content_received] + cmp eax, [ebp + http_msg.content_length] jae .got_all_data - jmp .need_more_data +; jmp .need_more_data .need_more_data: popa @@ -745,7 +745,7 @@ proc HTTP_process identifier ;////////////////////////////////////////////////// mov [ebp + http_msg.content_length], eax mov [ebp + http_msg.content_received], eax .got_all_data: - DEBUGF 1, "We got all the data! (%u bytes)\n", [ebp + http_msg.content_length] + DEBUGF 1, "We got all the data! (%u bytes)\n", [ebp + http_msg.content_received] or [ebp + http_msg.flags], FLAG_GOT_ALL_DATA and [ebp + http_msg.flags], not FLAG_CONNECTED mcall close, [ebp + http_msg.socket]