From a30dd4aa9455f4166c6bc18e043fccd645b4231c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 3 Jan 2023 11:35:15 +0000 Subject: www_coderepo: implement /$CODE_REPO/atom/ endpoint This should be similar or identical to what's in cgit; and tie into the rest of the www_coderepo stuff. --- lib/PublicInbox/GzipFilter.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/GzipFilter.pm') diff --git a/lib/PublicInbox/GzipFilter.pm b/lib/PublicInbox/GzipFilter.pm index bd72afff..a11ba73f 100644 --- a/lib/PublicInbox/GzipFilter.pm +++ b/lib/PublicInbox/GzipFilter.pm @@ -123,8 +123,9 @@ sub http_out ($) { } sub write { + my $self = shift; # my $ret = bytes::length($_[1]); # XXX does anybody care? - http_out($_[0])->write(translate(@_)); + http_out($self)->write($self->translate(@_)); } sub zfh { @@ -166,7 +167,7 @@ sub zflush ($;@) { sub close { my ($self) = @_; my $http_out = http_out($self) // return; - $http_out->write(zflush($self)); + $http_out->write($self->zflush); (delete($self->{http_out}) // return)->close; } -- cgit v1.2.3-24-ge0c7