diff options
author | Eric Wong <e@80x24.org> | 2017-03-05 03:04:41 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-03-05 23:20:23 +0000 |
commit | c6481df15b97a643b4e78a79319a8cd3e26dad3b (patch) | |
tree | c6ff3465aa1eec4a1e14b299360ff5cf998e4c3d | |
parent | 5f5c04da8e25ee08004e31576792605feae9f059 (diff) | |
download | kcar-c6481df15b97a643b4e78a79319a8cd3e26dad3b.tar.gz |
-rw-r--r-- | ext/kcar/kcar.rl | 2 |
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--); |