From: wessels <> Date: Sun, 24 Aug 1997 07:59:47 +0000 (+0000) Subject: Fixed not setting HTTP status code for errors. Still need to fix X-Git-Tag: SQUID_3_0_PRE1~4828 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e3f80962e092d8de60c85a2eb1958865abc050fd;p=thirdparty%2Fsquid.git Fixed not setting HTTP status code for errors. Still need to fix the log code and other fields. This probably means a callback from the errorpage module to the client-side. --- diff --git a/src/errorpage.cc b/src/errorpage.cc index 8f9dde6658..9c8690466d 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -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