]> Sergey Matveev's repositories - public-inbox.git/commitdiff
www: mbox* drop unneeded {base_url} memoizations
authorEric Wong <e@80x24.org>
Sat, 20 Aug 2022 08:01:35 +0000 (08:01 +0000)
committerEric Wong <e@80x24.org>
Sat, 20 Aug 2022 18:30:57 +0000 (18:30 +0000)
That field is not needed since List-* and Archived-At headers
are no longer appended as of commit:
1bf653ad139bf7bb (nntp+www: drop List-* and Archived-At headers, 2020-12-10)

lib/PublicInbox/Mbox.pm
lib/PublicInbox/MboxGz.pm

index e65f38f07351e765e13ddd37258f737681518706..2ef8ff2ba48da7e52d2aebbde3d035c001c23503 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2015-2021 all contributors <meta@public-inbox.org>
+# Copyright (C) all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 
 # Streaming interface for mboxrd HTTP responses
@@ -82,7 +82,6 @@ sub no_over_raw ($) {
 # /$INBOX/$MESSAGE_ID/raw
 sub emit_raw {
        my ($ctx) = @_;
-       $ctx->{base_url} = $ctx->{ibx}->base_url($ctx->{env});
        my $over = $ctx->{ibx}->over or return no_over_raw($ctx);
        my ($id, $prev);
        my $mip = $ctx->{next_arg} = [ $ctx->{mid}, \$id, \$prev ];
index 3ed33867a1a84de1c2954d906aa620cfb6e7b647..56f5adcf9caca503d3fff8b5ac402874ed24f5ca 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2015-2021 all contributors <meta@public-inbox.org>
+# Copyright (C) all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 package PublicInbox::MboxGz;
 use strict;
@@ -22,7 +22,6 @@ sub async_next ($) {
 sub mbox_gz {
        my ($self, $cb, $fn) = @_;
        $self->{cb} = $cb;
-       $self->{base_url} = $self->{ibx}->base_url($self->{env});
        $self->{gz} = PublicInbox::GzipFilter::gzip_or_die();
        $fn = to_filename($fn // '') // 'no-subject';
        # http://www.iana.org/assignments/media-types/application/gzip