From e358bd7a3833f8c5bf9db57d228888f9c5f3692e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 2 Jul 2016 07:56:34 +0000 Subject: inbox: base_url method takes PSGI env hashref instead This is lighter and we can work further towards eliminating our Plack::Request dependency entirely. --- lib/PublicInbox/Mbox.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/Mbox.pm') 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 = ( -- cgit v1.2.3-24-ge0c7