On 19-Jan-00 Doug MacEachern wrote:
> On Fri, 14 Jan 2000, Jason Bodnar wrote:
> 
>> A line in the proxy example of the eagle book on page 380 does not seem to
>> work
>> (entirely):
>> 
>> The line:
>> 
>> $r->headers_in->do(sub {$request->header(@_);});
> 
> what if you change that to:
> 
>  $r->headers_in->do(sub {$request->header(@_); 1});
> 
> ?

That sets all the headers including Connection which is a problem if it's
Keep-Alive. It probably needs to be something like:

$r->headers_in->do(sub {return 1 if $_[0] eq 'Connection';
$request->header(@_); 1});

---
Jason Bodnar + [EMAIL PROTECTED] + Tivoli Systems

That boy wouldn't know the difference between the Internet and a hair net. --
Jason Bodnar

Reply via email to