]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
From: Henrik Nordstrom <hno@hem.passagen.se>
authorwessels <>
Sat, 9 May 1998 04:35:06 +0000 (04:35 +0000)
committerwessels <>
Sat, 9 May 1998 04:35:06 +0000 (04:35 +0000)
A safeguard to force the client connection to close after a error
message.

src/errorpage.cc

index 3f871d2b59c239904ea1bf27c373443d8ab5eb7d..d0ced48205457cb5f08602a8b8762aba8cbf3aa3 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: errorpage.cc,v 1.129 1998/05/02 06:41:58 wessels Exp $
+ * $Id: errorpage.cc,v 1.130 1998/05/08 22:35:06 wessels Exp $
  *
  * DEBUG: section 4     Error Generation
  * AUTHOR: Duane Wessels
@@ -255,6 +255,7 @@ errorAppendEntry(StoreEntry * entry, ErrorState * err)
     httpReplySwapOut(rep, entry);
     httpReplyDestroy(rep);
     mem->reply->sline.status = err->http_status;
+    mem->reply->content_length = -1;
     storeBufferFlush(entry);
     storeComplete(entry);
     storeNegativeCache(entry);