[Varnish] #1768: Problem with related unset http headers on req

Varnish varnish-bugs at varnish-cache.org
Wed Jul 29 15:11:21 CEST 2015


#1768: Problem with related unset http headers on req
-------------------+----------------------
 Reporter:  boris  |       Type:  defect
   Status:  new    |   Priority:  normal
Milestone:         |  Component:  varnishd
  Version:  4.0.3  |   Severity:  normal
 Keywords:         |
-------------------+----------------------
 With the following vcl config file I get an error from the C-compiler when
 compiling it.
 {{{
 vcl 4.0;
 backend default {
   .host = "localhost";
   .port = "8080";
 }
 sub vcl_recv {
   unset req.http.TEST_VALUE;
   unset req.http.TEST-VALUE;
 }
 }}}
 Message is:
 {{{
 Message from C-compiler:
 ./vcl.CCNf2VxL.c:542:30: error: redefinition of âVGC_HDR_REQ_TEST_VALUEâ
  static const struct gethdr_s VGC_HDR_REQ_TEST_VALUE =
                               ^
 ./vcl.CCNf2VxL.c:540:30: note: previous definition of
 âVGC_HDR_REQ_TEST_VALUEâ was here
  static const struct gethdr_s VGC_HDR_REQ_TEST_VALUE =
 }}}

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1768>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list