about summary refs log tree commit homepage
path: root/lib/PublicInbox/Mbox.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-02 07:56:34 +0000
committerEric Wong <e@80x24.org>2016-07-02 07:57:27 +0000
commite358bd7a3833f8c5bf9db57d228888f9c5f3692e (patch)
tree4822b8d06e92f78ea3861d83f8c999015ccae397 /lib/PublicInbox/Mbox.pm
parent0f9091f381191484f1a5ed5189d23cbfa88de6fc (diff)
downloadpublic-inbox-e358bd7a3833f8c5bf9db57d228888f9c5f3692e.tar.gz
This is lighter and we can work further towards eliminating
our Plack::Request dependency entirely.
Diffstat (limited to 'lib/PublicInbox/Mbox.pm')
-rw-r--r--lib/PublicInbox/Mbox.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm
index 1c97f959..9dad0f6d 100644
--- a/lib/PublicInbox/Mbox.pm
+++ b/lib/PublicInbox/Mbox.pm
@@ -28,7 +28,7 @@ sub msg_str {
                 $header_obj->header_set($d);
         }
         my $ibx = $ctx->{-inbox};
-        my $base = $ibx->base_url($ctx->{cgi});
+        my $base = $ibx->base_url($ctx->{env});
         my $mid = mid_clean($header_obj->header('Message-ID'));
         $mid = uri_escape_utf8($mid);
         my @append = (