]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1694: Assertion failure in mgr:config if using access_log_format %<h
authorhno <>
Thu, 27 Jul 2006 01:55:19 +0000 (01:55 +0000)
committerhno <>
Thu, 27 Jul 2006 01:55:19 +0000 (01:55 +0000)
src/access_log.cc

index 957ed8dbaa1f1379509e618294e015bfa8756295..2cc32c64d26dbb97d3ef8b4da207ca5db9de3f32 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: access_log.cc,v 1.115 2006/06/07 22:39:33 hno Exp $
+ * $Id: access_log.cc,v 1.116 2006/07/26 19:55:19 hno Exp $
  *
  * DEBUG: section 46    Access Log
  * AUTHOR: Duane Wessels
@@ -457,7 +457,9 @@ struct logformat_token_table_entry logformat_token_table[] =
         {"tr", LFT_TIME_TO_HANDLE_REQUEST},
 
         {">h", LFT_REQUEST_HEADER},
+        {">h", LFT_REQUEST_ALL_HEADERS},
         {"<h", LFT_REPLY_HEADER},
+        {"<h", LFT_REPLY_ALL_HEADERS},
 
         {"un", LFT_USER_NAME},
         {"ul", LFT_USER_LOGIN},
@@ -1222,9 +1224,10 @@ accessLogDumpLogFormat(StoreEntry * entry, const char *name, logformat * definit
                 assert(te->config != NULL);
             }
         }
+
+        storeAppend(entry, "\n", 1);
     }
 
-    storeAppend(entry, "\n", 1);
 }
 
 void