Mailing List Archive

#1768: Problem with related unset http headers on req
#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

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1768: Problem with related unset http headers on req [ In reply to ]
#1768: Problem with related unset http headers on req
----------------------+----------------------------------------
Reporter: boris | Owner: Poul-Henning Kamp <phk@…>
Type: defect | Status: closed
Priority: normal | Milestone:
Component: varnishd | Version: 4.0.3
Severity: normal | Resolution: fixed
Keywords: |
----------------------+----------------------------------------
Changes (by Poul-Henning Kamp <phk@…>):

* owner: => Poul-Henning Kamp <phk@…>
* status: new => closed
* resolution: => fixed


Comment:

In [2bb8ddef13e988216d58b2ed16f40e34db36a0cb]:
{{{
#!CommitTicketReference repository=""
revision="2bb8ddef13e988216d58b2ed16f40e34db36a0cb"
Properly encode HTTP headers with weird characters to C identifiers.

Please note that using underscore in HTTP headers is considered a
really bad idea because many application frameworks map minus to
underscore in environment variables.

Fixes: #1768
}}}

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

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs