From 731127142a9203aade9b5a9a2b54bf6a19da7ed8 Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 12 Jul 2010 16:01:23 +0000
Subject: [PATCH] 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.
---
 jcc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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?
-- 
2.49.0