Commit e68d3209 authored by Nils Goroll's avatar Nils Goroll Committed by Dridi Boukelmoune

Use the right version of the vct_ishdrval() macro

I accidentally committed an earlier, wrong version. o/ Dridi

Ref #3407

https://github.com/varnishcache/varnish-cache/pull/3407#issuecomment-696146625

Conflicts:
	include/vct.h

The previous commit introduces more than just this macro and was skipped
on purpose.
parent d491c334
......@@ -75,6 +75,8 @@ vct_is(int x, uint16_t y)
#define vct_isxmlnamestart(x) vct_is(x, VCT_XMLNAMESTART)
#define vct_isxmlname(x) vct_is(x, VCT_XMLNAMESTART | VCT_XMLNAME)
#define vct_istchar(x) vct_is(x, VCT_ALPHA | VCT_DIGIT | VCT_TCHAR)
#define vct_ishdrval(x) \
(((uint8_t)(x) >= 0x20 && (uint8_t)(x) != 0x7f) ||(uint8_t)(x) == 0x09)
static inline int
vct_iscrlf(const char* p, const char* end)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment