From 311c2adc8c639813e0078631a8d97e5008452682 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 23 May 2016 03:57:45 +0000 Subject: git-http-backend: avoid Plack::Request parsing body Only check query parameters since there's no useful body in there. --- lib/PublicInbox/GitHTTPBackend.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox') diff --git a/lib/PublicInbox/GitHTTPBackend.pm b/lib/PublicInbox/GitHTTPBackend.pm index 97834de4..70990ebc 100644 --- a/lib/PublicInbox/GitHTTPBackend.pm +++ b/lib/PublicInbox/GitHTTPBackend.pm @@ -42,7 +42,7 @@ sub r ($;$) { sub serve { my ($cgi, $git, $path) = @_; - my $service = $cgi->param('service') || ''; + my $service = $cgi->query_parameters->get('service') || ''; if ($service =~ /\Agit-\w+-pack\z/ || $path =~ /\Agit-\w+-pack\z/) { my $ok = serve_smart($cgi, $git, $path); return $ok if $ok; -- cgit v1.2.3-24-ge0c7