From 21cf3d6a9a4be06deca4adea9de071f772fb1c57 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 30 May 2016 00:51:44 +0000 Subject: git-http-backend: remove dependency on Plack::Request Plack::Request is unnecessary overhead for this given the strictness of git-http-backend. Furthermore, having to make commit 311c2adc8c63 ("avoid Plack::Request parsing body") to avoid tempfiles should not have been necessary. --- lib/PublicInbox/WWW.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/PublicInbox/WWW.pm') diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index cf370afa..88d4f6f0 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -48,7 +48,7 @@ sub call { $path_info =~ m!$INBOX_RE/(git-upload-pack)\z!) { my $path = $2; return (invalid_inbox($self, $ctx, $1) || - serve_git($cgi, $ctx->{git}, $path)); + serve_git($env, $ctx->{git}, $path)); } elsif ($method !~ /\AGET|HEAD\z/) { return r(405, 'Method Not Allowed'); @@ -68,7 +68,7 @@ sub call { ($PublicInbox::GitHTTPBackend::ANY)\z!ox) { my $path = $2; invalid_inbox($self, $ctx, $1) || - serve_git($cgi, $ctx->{git}, $path); + serve_git($env, $ctx->{git}, $path); } elsif ($path_info =~ m!$INBOX_RE/([\w-]+).mbox\.gz\z!o) { serve_mbox_range($self, $ctx, $1, $2); } elsif ($path_info =~ m!$INBOX_RE/$MID_RE/$END_RE\z!o) { @@ -424,8 +424,8 @@ sub msg_page { } sub serve_git { - my ($cgi, $git, $path) = @_; - PublicInbox::GitHTTPBackend::serve($cgi, $git, $path); + my ($env, $git, $path) = @_; + PublicInbox::GitHTTPBackend::serve($env, $git, $path); } sub serve_mbox_range { -- cgit v1.2.3-24-ge0c7