зеркало из https://github.com/microsoft/git.git
Merge branch 'jn/gitweb-return-or-exit-cleanup'
* jn/gitweb-return-or-exit-cleanup: gitweb: Return or exit after done serving request Conflicts: gitweb/gitweb.perl
This commit is contained in:
Коммит
5bfd53629e
|
@ -1109,6 +1109,15 @@ sub run {
|
||||||
|
|
||||||
run();
|
run();
|
||||||
|
|
||||||
|
if (defined caller) {
|
||||||
|
# wrapped in a subroutine processing requests,
|
||||||
|
# e.g. mod_perl with ModPerl::Registry, or PSGI with Plack::App::WrapCGI
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
# pure CGI script, serving single request
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
## ======================================================================
|
## ======================================================================
|
||||||
## action links
|
## action links
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче