about summary refs log tree commit homepage
path: root/examples/public-inbox.psgi
diff options
context:
space:
mode:
Diffstat (limited to 'examples/public-inbox.psgi')
-rw-r--r--examples/public-inbox.psgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/public-inbox.psgi b/examples/public-inbox.psgi
index a90a2bc3..11e2a6e7 100644
--- a/examples/public-inbox.psgi
+++ b/examples/public-inbox.psgi
@@ -47,7 +47,9 @@ builder {
         sub {
                 my ($env) = @_;
                 # share public-inbox.git code!
-                if ($src && $env->{PATH_INFO} =~ m!\A/public-inbox\.git/(.*)!) {
+                if ($src && $env->{PATH_INFO} =~
+                                m!\A/(?:public-inbox(?:\.git)?/)?
+                                ($PublicInbox::GitHTTPBackend::ANY)\z!xo) {
                         PublicInbox::GitHTTPBackend::serve($env, $src, $1);
                 } else {
                         $www->call($env);