In server_response_is_complete(), expect no body if the status code is 204.
authorFabian Keil <fk@fabiankeil.de>
Mon, 12 Jul 2010 16:01:23 +0000 (16:01 +0000)
committerFabian Keil <fk@fabiankeil.de>
Mon, 12 Jul 2010 16:01:23 +0000 (16:01 +0000)
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.

jcc.c

diff --git a/jcc.c b/jcc.c
index 722d7fd..59c8266 100644 (file)
--- 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?