From: Fabian Keil Date: Mon, 12 Jul 2010 16:01:23 +0000 (+0000) Subject: In server_response_is_complete(), expect no body if the status code is 204. X-Git-Tag: v_3_0_17~128 X-Git-Url: http://www.privoxy.org/gitweb/quickstart.html?a=commitdiff_plain;h=731127142a9203aade9b5a9a2b54bf6a19da7ed8;p=privoxy.git In server_response_is_complete(), expect no body if the status code is 204. Should fix #3022042 and #3025553, reported by a user with no visible name. Most likely also fixes a bunch of other AJAX-related problem reports we closed in the past due to insufficient information. --- diff --git a/jcc.c b/jcc.c index 722d7fd1..59c8266b 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.319 2010/05/24 11:40:27 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.320 2010/06/13 12:27:03 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -1004,7 +1004,7 @@ static int server_response_is_complete(struct client_state *csp, content_length_known = TRUE; } - if (csp->http->status == 304) + if (csp->http->status == 204 || csp->http->status == 304) { /* * Expect no body. XXX: incomplete "list" of status codes?