about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-05-23 03:57:45 +0000
committerEric Wong <e@80x24.org>2016-05-23 03:57:45 +0000
commit311c2adc8c639813e0078631a8d97e5008452682 (patch)
tree0f95b49635f40e267b014bafae96cef722b2cb71 /lib/PublicInbox
parentc6bdad148d8b792c3d55efca726311f7c6df5fb9 (diff)
downloadpublic-inbox-311c2adc8c639813e0078631a8d97e5008452682.tar.gz
Only check query parameters since there's no useful body
in there.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/GitHTTPBackend.pm2
1 files changed, 1 insertions, 1 deletions
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;