You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2018/04/26 21:21:43 UTC

[trafficserver] branch master updated: preserve whitespace when reading/writing records.config

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 4c82dfe  preserve whitespace when reading/writing records.config
4c82dfe is described below

commit 4c82dfe343427087af5e707230eaf565671477d6
Author: Randall Meyer <ra...@yahoo.com>
AuthorDate: Mon Apr 9 15:13:18 2018 -0700

    preserve whitespace when reading/writing records.config
---
 lib/records/RecConfigParse.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/records/RecConfigParse.cc b/lib/records/RecConfigParse.cc
index a13ec93..3042b0e 100644
--- a/lib/records/RecConfigParse.cc
+++ b/lib/records/RecConfigParse.cc
@@ -152,7 +152,7 @@ RecConfigFileParse(const char *path, RecConfigEntryCallback handler, bool inc_ve
   ink_hash_table_destroy(g_rec_config_contents_ht);
   g_rec_config_contents_ht = ink_hash_table_create(InkHashTableKeyType_String);
 
-  line_tok.Initialize(fbuf, SHARE_TOKS);
+  line_tok.Initialize(fbuf, SHARE_TOKS | ALLOW_EMPTY_TOKS);
   line     = line_tok.iterFirst(&line_tok_state);
   line_num = 1;
   while (line) {

-- 
To stop receiving notification emails like this one, please contact
zwoop@apache.org.