I think thats exactly it. Thank you!

---
Larry Root <[email protected]>
Head of Web Development | 949.207.6063
Armor Games Inc. | http://armorgames.com


On Tue, Nov 16, 2010 at 1:27 AM, Willy Tarreau <[email protected]> wrote:

> Hello,
>
> On Mon, Nov 15, 2010 at 06:08:00PM -0800, Larry Root wrote:
> > So I played around with this today and I am able to delete the
> Content-type
> > header but I cant seem to get the condition to behave. Here is example
> code
> > from my backend:
> >
> > backend http_www
> >     server srv_name 0.0.0.0:80 maxconn 32 weight 1
> > *    acl is_status_304 status eq 304*
> > *    rspidel ^Content-type if is_status_304*
> >
> > No matter what I do with the rspidel command it always deletes the
> > content-type header and it never follows the condition. For example the
> > following also deletes the content-type header:
> >
> > *    rspidel ^Content-type if FALSE*
> >
> > Perhaps I am not using conditions and ACLs properly?
>
> No, it's correct and it works for me with the exact same lines
> in 1.4.9 ! What version are you using ? I suspect you're on 1.3,
> which does not support ACLs on rewrite rules.
>
> 1.3:
>        > GET / HTTP/1.0
>
>        < HTTP/1.0 304
>
>        > GET / HTTP/1.0
>
>        < HTTP/1.0 200
>
> 1.4:
>        > GET / HTTP/1.0
>
>        < HTTP/1.0 200
>        < Content-type: bla
>
>        > GET / HTTP/1.0
>
>        < HTTP/1.0 304 not mod
>
> Regards,
> Willy
>
>

Reply via email to