Hi,

Le mercredi 02 mai 2007 à 11:14, Jay Bonci écrivait:
> Hey Philippe,
>       I'm Jay Bonci, the Debian maintainer for libhttp-proxy-perl. I'm doing
> some updates, and I noticed
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=406227

Sorry for the late reply.

> The code there isn't entirely right, but my trivial example here doesn't
> work either:

I tried to reproduce the bug when I got your email, but couldn't make
it fail. Then I, err, forgot about it...

> #!/usr/bin/perl
> use strict;
> use warnings;
> use HTTP::Proxy;
> use HTTP::Proxy::BodyFilter::simple;
> my $proxy = new HTTP::Proxy();
> my $filter = HTTP::Proxy::BodyFilter::simple->new( sub { ${$_[1]} =
> "hello"; });
> $proxy->push_filter(response => $filter);
> $proxy->start();
> 
> I'd expect this to work properly. I'm getting the proper Via headers
> when I access it through curl, but the output isn't getting properly
> mangled.  Thoughts?

First, this code will give an "hello" per chunk of data received by the
proxy, not a single "hello" string.

I'll try again the orginal code and your code, with HTTP::Proxy 0.19,
0.20 and the svn version, as well as curl. I'll let you know what the
results are.

    Thanks for your patience
    (and for packaging HTTP::Proxy in the first place!)

-- 
 Philippe "BooK" Bruhat

 There is no greater magic than knowing exactly who and what you are.
                                                 (Moral from Groo #2 (Image))

Reply via email to