]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed not setting HTTP status code for errors. Still need to fix
authorwessels <>
Sun, 24 Aug 1997 07:59:47 +0000 (07:59 +0000)
committerwessels <>
Sun, 24 Aug 1997 07:59:47 +0000 (07:59 +0000)
the log code and other fields.  This probably means a callback
from the errorpage module to the client-side.

src/errorpage.cc

index 8f9dde6658205877fa937bdcb62b766702a34b38..9c8690466da1552bb8dae4f96442ea95f20db1b1 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: errorpage.cc,v 1.65 1997/08/24 01:46:44 wessels Exp $
+ * $Id: errorpage.cc,v 1.66 1997/08/24 01:59:47 wessels Exp $
  *
  * DEBUG: section 4     Error Generation
  * AUTHOR: Duane Wessels
@@ -224,10 +224,13 @@ void
 errorAppendEntry(StoreEntry * entry, ErrorState * err)
 {
     char *buf;
+    MemObject *mem = entry->mem_obj;
     int len;
     assert(entry->store_status == STORE_PENDING);
     buf = errorBuildBuf(err, &len);
     storeAppend(entry, buf, len);
+    if (mem)
+       mem->reply->code = err->http_status;
 }
 
 static void