Inconsistency in VRT_SetHdr/GetHhdr field sizes
Poul-Henning Kamp
phk at phk.freebsd.dk
Mon Jan 24 00:48:15 CET 2011
In message <AANLkTikj7QoeEgYkfwtiZLUouYdB-dTuGQmM1HJ6aG3E at mail.gmail.com>, AD w
rites:
>This should mean the field is \012X-Cache-Key: however when running this vcl
>through -C it shows up as 14 (2 more bytes than the full size of the field).
> Any ideas why this would be ?
Because (\###) is octal notation \014 means twelve.
> VRT_SetHdr(sp, HDR_REQ, "\014X-Cache-Key:", "test",
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-misc
mailing list