The following reply was made to PR protocol/1399; it has been noted by GNATS.
From: Dean Gaudet <[EMAIL PROTECTED]>
To: Ariel Glenn <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: protocol/1399: MISE 4.0 POST, then 401 Unauth, then second POST with
good uname/pwd, garbage data in logs and (sometimes) garbled request
Date: Wed, 21 Jan 1998 14:57:20 -0800 (PST)
Hi, any chance you could give this patch a try? It should apply cleanly
against 1.2.4 or 1.2.5. I'm not sure if anyone ever forwarded the patch
to you.
Dean
Index: http_request.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_request.c,v
retrieving revision 1.50.2.8
diff -u -r1.50.2.8 http_request.c
--- http_request.c 1997/11/22 22:24:52 1.50.2.8
+++ http_request.c 1998/01/21 22:49:29
@@ -811,6 +811,17 @@
r->status = type;
+ /*
+ * If we want to keep the connection, be sure that the request body
+ * (if any) has been read.
+ */
+ if ((r->status != HTTP_NOT_MODIFIED) && (r->status != HTTP_NO_CONTENT)
+ && !status_drops_connection(r->status)
+ && r->connection && (r->connection->keepalive != -1)) {
+
+ (void) discard_request_body(r);
+ }
+
/* Two types of custom redirects --- plain text, and URLs.
* Plain text has a leading '"', so the URL code, here, is triggered
* on its absence