logo       

Referer/User-Agent patch for 1.3.0: msg#00049

web.lighttpd

Subject: Referer/User-Agent patch for 1.3.0

Here's a patch to add support for $HTTP['referer'] and $HTTP['UserAgent'] directives in conditional configs.

The usual warnings apply (ie: I don't really know what I'm doing).. just a temporary fix..

I've been away from the list for a bit, has there been much discussing about implementing/how best to handle http header matching? I'm thinking something like this:

$HTTP['header']['Referer'] =
$HTTP['header']['User-Agent'] =


although that means all the modules would have to walk the headers hash and pass each value to it's patch_connection function..


Unless we have it build an array of 'headers we care about' from the config file, which is available to the plugins, and the plugins only send the headers from that array to the patch_connection() function?


Or have we all gone over this and already have a solution? IMAP isn't fun sometimes ;)


Matt


Attachment: lighttpd-1.3.0.headers.patch
Description: PostScript document

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise