Skip to contentSkip to conversation

gitweb: Go to DONE_REQUEST rather than DONE_GITWEB in die_error

PATCH/RFC Jakub Narebski 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

End the request after die_error finishes, rather than exiting gitweb instance (perhaps wrapped like in ModPerl::Registry or gitweb.psgi case).

---
Should bring no differences except for running gitweb in persistent environments natively, without wrapping; currently only FastCGI is supported.

 gitweb/gitweb.perl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
gitweb/gitweb.perl +2 -1
index 1d94718..bcd7c8a 100755
@@ -1156,6 +1156,7 @@ sub run {
 
 		run_request();
 
+	DONE_REQUEST:
 		$post_dispatch_hook->()
 			if $post_dispatch_hook;
 		$first_request = 0;
@@ -3679,7 +3680,7 @@ EOF
 	print "</div>\n";
 
 	git_footer_html();
-	goto DONE_GITWEB
+	goto DONE_REQUEST
 		unless ($opts{'-error_handler'});
 }
 
Signature · 1 line
1.7.3