Subject: | on_header callback return value |
Doesn't appear to be documented at the moment, but it seems that on_header needs to return the initial header response when it's called for the last time.
on_header => sub {
my ($response) = @_;
sub {
return $response unless @_;
...
}
}
Not sure whether this is intentional (allowing the header data to be changed, perhaps?) or just an oversight, but presumably it's missing docs rather than a bug.
cheers,
Tom