about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-03-05 03:04:41 +0000
committerEric Wong <e@80x24.org>2017-03-05 23:20:23 +0000
commitc6481df15b97a643b4e78a79319a8cd3e26dad3b (patch)
treec6ff3465aa1eec4a1e14b299360ff5cf998e4c3d
parent5f5c04da8e25ee08004e31576792605feae9f059 (diff)
downloadkcar-c6481df15b97a643b4e78a79319a8cd3e26dad3b.tar.gz
-rw-r--r--ext/kcar/kcar.rl2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/kcar/kcar.rl b/ext/kcar/kcar.rl
index d21b243..cbcfa97 100644
--- a/ext/kcar/kcar.rl
+++ b/ext/kcar/kcar.rl
@@ -209,7 +209,7 @@ static void write_cont_value(struct http_parser *hp,
 
   /* normalize tab to space */
   if (cont_len > 0) {
-    assert((' ' == *vptr || '\t' == *vptr) && "invalid leading white space");
+    assert(is_lws(*vptr) && "invalid leading white space");
     *vptr = ' ';
   }
   for (end = len - 1; end >= 0 && is_lws(vptr[end]); end--);