about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-05-30 01:01:09 +0000
committerEric Wong <e@80x24.org>2016-05-30 01:01:09 +0000
commit1addae0198108a14cec9d3b306f5c51c70a5e053 (patch)
treefba93bffb68501fa355836fe12fde5c578c4e623
parent21cf3d6a9a4be06deca4adea9de071f772fb1c57 (diff)
downloadpublic-inbox-1addae0198108a14cec9d3b306f5c51c70a5e053.tar.gz
Accessing $env directly is faster and we will eventually
remove all Plack::Request dependencies.
-rw-r--r--lib/PublicInbox/WWW.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm
index 88d4f6f0..a8202073 100644
--- a/lib/PublicInbox/WWW.pm
+++ b/lib/PublicInbox/WWW.pm
@@ -41,9 +41,9 @@ sub call {
         my ($self, $env) = @_;
         my $cgi = Plack::Request->new($env);
         my $ctx = {cgi => $cgi, pi_config => $self->{pi_config}, www => $self};
-        my $path_info = $cgi->path_info;
+        my $path_info = $env->{PATH_INFO};
+        my $method = $env->{REQUEST_METHOD};
 
-        my $method = $cgi->method;
         if ($method eq 'POST' &&
                  $path_info =~ m!$INBOX_RE/(git-upload-pack)\z!) {
                 my $path = $2;