Header set to NULL by a VMOD: semantic change between 3.0.3 and 3.0.6

Carlos Abalde carlos.abalde at gmail.com
Mon Nov 3 16:02:02 CET 2014


> On Nov 3, 2014, at 3:43 PM, Carlos Abalde <carlos.abalde at gmail.com> wrote:
> 
> ...
> Should be replaced after 3.0.3 with something like:
> 
>  set req.http.x-foo = vmod.foo();
>  if (req.http.x-foo != "") {
>    # VMOD returned NULL.
>  }

Small correction:

  set req.http.x-foo = vmod.foo();
  if (req.http.x-foo == "") {
    # VMOD returned NULL (or empty string)
  }

Cheers,

--
Carlos Abalde.



More information about the varnish-misc mailing list