[squid-users] [PATCH] external_acl and http_reply_access

From: Joshua Brindle <JBrindle@dont-contact.us>
Date: Sun, 10 Aug 2003 15:17:06 -0500

>On Sunday 10 August 2003 10.31, Joshua Brindle wrote:
>
>> X-Naughty header. I've been playing around with an external acl
>> and I always get data back if I use something like %LOGIN or %PATH
>> but I cannot get any header info back with %{header} . In the
>> squid.conf it says "request header" but i figured that was just
>> an oversight of using external acl's in http_access but alas
>> it does not appear to be giving me reply headers back :(
>
>
>There is no external acl method for accessing reply headers, only
>request headers.

enclosed trivial patch fixes this by checking for ch->reply and
sending
reply headers, and ch->request and sending request headers,
I don't know if there is a situation where neither of these would be
true,
I hope not...

>Also, in squid-2.5 external acl methods is not suitable for use in
>http_reply_access as http_reply_access can not wait for any external
>lookups to complete. The latter is addressed in Squid-3 I think.
>
I am using squid-3
>
>(access controls using reply headers must take place in
>http_reply_access, as they need access to the reply and http_access
>executes before the request is forwarded..)
>
>Regards
>Henrik

Received on Sun Aug 10 2003 - 14:17:32 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:48 MST